2016-08-03 5 views
1

안녕하세요. 내 웹 사이트의 로컬 폴더 인 /fr/welterweight.php을 Apache의 conf 또는 .htaccess를 통해 리디렉션하려고합니다.물음표가있는 htaccess 리디렉션

까지 http://www.bluek.com/fr/welterweight.php?c=france은 내가 소유하고있는 다른 웹 사이트입니다. ,

RewriteEngine On 

RewriteCond %{QUERY_STRING} ^$ 
RewriteRule ^fr/welterweight\.php$ http://www.bluek.com/$0?c=france [L,R=302] 

답변

2

이 규칙

작동하지 않음을 시도했다. 불행히도 그것은 작동하지 않습니다. "이 페이지는 여러 번 리디렉션되고 있습니다."
+0

안녕하세요 Anubhava 대답 해 주셔서 감사합니다 :

나는

RewriteCond %{REQUEST_URI} /fr/welterweight.php RewriteCond %{QUERY_STRING} ^welterweight.php$ RewriteRule ^/?$ http://www.bluek.com/fr/welterweight.php?c=france 

그러나 그 사이트 루트의 .htaccess에서 작동합니다 – scandalous

+0

ok 지금 내 업데이트 된 규칙을 시도하십시오. – anubhava

+0

업데이트 된 규칙을 사용해 보셨습니까? – anubhava