我有此鏈接:的.htaccess,mod_rewrite的域,子域和查詢
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]
有沒有人有一個想法,我該如何做到這一點? TKS!
RewriteBase返回錯誤500頁... :(我很有信心它會是解決方案...但仍然嘗試...任何想法?Tks !! –