【发布时间】:2015-10-28 10:21:04
【问题描述】:
我现在的网址是
http://localhost/removalcenter/landing-page/?from=Algeria&to=Afghanistan&submit=Submit
我想在用户输入 URL 时重定向到当前 URLhttp://localhost/removalcenter/removals-from-Algeria-to-Afghanistan
from 和 to 是查询字符串变量
我的 htaccess 代码是..
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /removalscenter/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /removalscenter/index.php [L]
</IfModule>
# END WordPress
请向我提供此重定向的规则。
【问题讨论】:
-
您不应为此使用 .htaccess。
-
@Ranker 你能给我提供这个改变的代码吗?因为我是新手。
-
@cgee 你能给我提供这个改变的代码吗.. 因为我是这个的新手
-
为此我需要更多信息。登陆页面是 wordpress 页面吗?
标签: wordpress apache .htaccess redirect