我在linuxmint上使用Lamp服务器,我在上面安装了两个wordpress平台,一个叫做"bfsite“,另一个叫做"titus”。我按照WordPress的建议修改了.htacces文件
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bfsite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /bfsite/index.php [L]
</IfModule>这个是针对bfsite的,而i修改是针对/titus平台的。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /titus/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /titus/index.php [L]
</IfModule>和一个简单的重定向。
Redirect /index.php http://89.39.166.81/titus如你所见,我将我的locahost设为在线,当我试图继续时,让你看看发生了什么
http://89.39.166.81/titus/about它会通过http://localhost/titus/dev/返回给我,如果您使用以下路径也会返回给我
http://89.39.166.81/titus/dev/它有一个404和页面找不到错误,但与"bfsite“wordpress平台。
发布于 2013-10-23 23:46:03
由于您使用的是ubuntu发行版,因此可以使用以下代码
sudo a2enmod rewrite--可以在wp后台开启postname。祝好运!
https://stackoverflow.com/questions/19542363
复制相似问题