我在目录/ newsite中安装了一个Wordpress站点,并且我试图从根目录访问它 - www.outcrossrecords.com
我复制了index.php& .htaccess文件到root并更改了Wordpress中常规设置中的URL,但它仍然无效。
我读到你需要更新.htaccess文件,我已经完全按照以下内容添加了以下内容......
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?outcrossrecords.com$ [NC]
RewriteCond %{REQUEST_URI} !^newsite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /newsite/$1
RewriteCond %{HTTP_HOST} ^(www.)?outcrossrecords.com$ [NC]
RewriteRule ^(/)?$newsite/index.php [L]
是否有一些我错过或做错的事情阻止了它的运作?
.htaccess文件以前就是这个......
# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine Off
AddHandler application/x-httpd-php53 .php .php5
DirectoryIndex index.cgi index.php
# BEGIN WordPress
# END WordPress