0
난 그냥 그것을 얻을하지 않습니다RewriteRule은 어떻게 작동합니까?
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteBase/
RewriteRule ^([a-z]+\-[0-9]+)/?$ $1/home/ [R]
RewriteRule ^[a-z]+\-([0-9]+)/(home|alone)/?$ /$2.php?id=$1 [L]
RewriteRule ^.*$ http://www.anotherdomain.com/ [R=301]
왜 마지막 규칙은 (그리고 마지막으로 내가 anotherdomain.com로 리디렉션 의미)는 항상 처리를?
http://mydomain.com/some-344 ---> http://mydomain.com/some-344/home/
http://mydomain.com/some-344/ ---> http://mydomain.com/some-344/home/
http://mydomain.com/some-344/home/ ---> home.php?id=344
http://mydomain.com/some-344/alone/ ---> alone.php?id=344
http://mydomain.com/anythingelse... --> http://www.anotherdomain.com/
감사 :
는이 같은 뭔가가 필요!
와우! 이것은 예상대로 작동합니다 !!!, 팁 주셔서 감사합니다. – coma