有人可以帮助我吗?我在哪里做错了?
我的wordpress网站不是root用户;我把它安装在一个目录(newsite /)我的意思是;有2个网站。
我的根网站(example.com)有默认的htaccess文件。
这是我的子WordPress网站(example.com/newsite/).htacces来源:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /newsite/
RewriteRule ^newsite/news/hello-world /newsite/news/?title=hello-world [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /newsite/index.php [L]
</IfModule>
# END WordPress
我只想:
www.example.com/newsite/news/hello-world
(以上网址应在下方打开网址;地址栏无网址更改)
www.example.com/newsite/news/?title=hello-world
答案 0 :(得分:0)
使用不同的永久链接选项进行检查。 注意:.htaccess文件应该是可写的,或者在保存固定链接后将建议的代码粘贴到.htaccess中。