【发布时间】:2017-04-19 17:19:08
【问题描述】:
我有这个链接:
http://portal.tribee.com.br/pwreset.php?key=3ef73d15ddb6e307f5c12ffd5bed7d7f
我需要这样:
http://tribee.com.br/suporte/?ccce=pwreset&key=98f7459b8d46e3a54ed76965825c894a
事实上,“pwreset.php”是其中一个页面......还有clientarea.php和其他......如果我可以制作一个通用的htaccess允许我保留我的主域,会成为完美的搭配......我已经尝试了很多组合......例如:
RewriteCond %{REQUEST_URI} ^/pwreset\.php$
RewriteCond %{QUERY_STRING} ^key=(.*)$
RewriteCond %{HTTP_HOST} ^portal.tribee.com.br$
RewriteRule ^(.*)$ http://tribee.com.br/suporte/?ccce=&%1. [R=302,L]
RewriteRule ^$ http://tribee.com.br/suporte/?ccce=pwreset&key=%1 [R,L]
有人知道我该如何实现这一目标吗?谢了!
【问题讨论】:
标签: php apache .htaccess mod-rewrite redirect