上下文:如何配置 NameCheap 域以指向 Apache 子文件夹?
按照德文的回答here,我在其中创建了一个.htaccess文件/var/www并写入以下内容:
RewriteEngine On
RewriteCond !sergiotapia.me
RewriteRule (.*) sergiotapia.me/$1 [QSA]
Run Code Online (Sandbox Code Playgroud)
我的文件夹结构是这样的:
/var/www/
/var/www/sergiotapia.me
Run Code Online (Sandbox Code Playgroud)
访问 URL 时,sergiotapia.me我看到了/var/www我想直接重定向到的内容/var/www/sergiotapia.me
有任何想法吗?