0
我使用WordPress的一个插件,它目前正在网址是这样的:http://www.example.com/?name=the-office
htaccess的动态网址
我想所有类似的URL重定向到http://www.example.com/name/the-office
Current htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
我试了几件事情并没有什么似乎工作,也许我需要把RewriteCond放在IfModule中?不确定,htaccess对我来说是陌生的。提前致谢。
将'/?name = the-office'重定向到'/ name/the-office'不会解决首先使用“错误的URL”的问题。您还需要调整Wordpress以传递其中包含“正确网址”的文档。 – Gumbo 2010-07-28 14:55:24
也检查在Apache中你的mod_rewrite已启用 – Nealv 2010-07-28 15:02:04