의 일부 세트가 포함 된 경우 www.mywebsite.com/리디렉션 URL이 단어
위 예제는 모든 URL을 리디렉션합니다. NS 재미, & 내가
RewriteCond %{REQUEST_URI} foobar
RewriteRule .* index.php
발견
홈페이지로 줄 재생하지만, 그것은 단지 하나 개의 단어를
감사를 리디렉션
의 일부 세트가 포함 된 경우 www.mywebsite.com/리디렉션 URL이 단어
위 예제는 모든 URL을 리디렉션합니다. NS 재미, & 내가
RewriteCond %{REQUEST_URI} foobar
RewriteRule .* index.php
발견
홈페이지로 줄 재생하지만, 그것은 단지 하나 개의 단어를
감사를 리디렉션
당신은 루트의 .htaccess에이 규칙을 사용할 수 있습니다 :
http://example.com/dont-fun-give-the
http://example.com/dddd/ddd/ss/aa/dont-fun-give-the
http://example.com/hello-dont-fun-give-the
http://example.com/dont-fun-give-the-dog
모두가로 리디렉션됩니다
RewriteEngine on
RewriteRule ^folder/(dont-stop-the-fun|dont-fun-stop-the|play-the|dont-fun-give-the) /index.php? [L,NC,R=301]
다음은
RewriteEngine on
RewriteCond %{REQUEST_URI} dont-stop-the-fun [OR]
RewriteCond %{REQUEST_URI} dont-fun-stop-the [OR]
RewriteCond %{REQUEST_URI} play-the [OR]
RewriteCond %{REQUEST_URI} dont-fun-give-the
RewriteRule .* /index.php [R]
찾고있는 무엇을 달성해야 다음
위 내용은 포함 된 모든 URL을 리디렉션합니다. 문자열은 그 안에있는 모든 위치에 있습니다.
다음 URL : http://example.com/index.php