2012-01-12 5 views
0

나는 동적 URL을 가지고 있습니다 domain.com/product/Paper_Bags/Merchandise_Bags_-_Matte_Colors/6_25__X_9_25_/Misty_Grey?7. 어떤htaccess 리디렉션 도움이 필요합니다

RewriteCond %{QUERY_STRING} (.*)$ 
RewriteRule ^(.*)/Misty_Grey http://domain.com/paper-merchandise-bags-plain-white/? [R=301,L] 

하지만 그 작동하지으로 domain.com/paper-merchandise-bags-plain-white/

나는 조건과 규칙을 사용하고 리디렉션 할 필요가 전화했을 때. 누군가이 문제를 해결하도록 도와 줄 수 있습니까? 내가 RedirectMatch ^(.*)/Misty_Grey http://domain.com/paper-merchandise-bags-plain-white/ 자사가 http://domain.com/paper-merchandise-bags-plain-white/?7 로 리디렉션지고 사용하는 경우

쿼리 문자열이

답변

0

다음 명령을 시도 볼 수 없습니다 그쪽 있도록? (7)을 제거 할 수있는 방법이 있나요,

//Rewrite to www 
Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^domain.com[nc] 
RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 

//301 Redirect Old File 
Redirect 301 http://domain.com/product/Paper_Bags/Merchandise_Bags_-_Matte_Colors/6_25__X_9_25_/Misty_Grey?7 http://domain.com/paper-merchandise-bags-plain-white/? 
+0

는 죄송하지 일. – joseph