【发布时间】:2012-09-17 21:44:58
【问题描述】:
我有一个网址http://www.domain.com/postname/?a_different_world
我需要改成http://www.domain.com/postname/a_different_world
如何去除?从 URL 使用 Htacccess(Wordpress)
我使用以下 htaccess 代码。但它不起作用
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php-$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /domain.com/index.php [L]
RewriteRule ^/postname/([0-9]+)$ /? $1 [L,QSA]
【问题讨论】:
-
请在您的示例域中使用
example.com,而不是domain.com(它归某人所有,可能不是您)。
标签: wordpress apache .htaccess url seo