내가 주소
www.example.com/tops/test1.php?name에 주소를
www.example.com/tops/articles/first_article
리디렉션하려고 해요 리디렉션 = first_article 또한htaccess로 디렉토리
어드레스로 어드레스를
www.example.com/tops/galleries/first_gallery
리디렉션
,174,www.example.com/tops/test2.php?name=first_gallery
및
www.example에
www.example.com/tops/first_page
같은 모든 다른 주소. co.kr/tops/page.php? name = first_page
다음 htaccess 파일이 나에게 리디렉션 루프를 제공합니다.
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^/tops/articles/(.+)$ /tops/test1.php?name=$1 [L]
RewriteRule ^/tops/galleries/(.+)$ /tops/test2.php?name=$1 [L]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule (.*)$ ./page.php?name=$1
Doe의 누구나 그 이유는 무엇입니까? 내가 뭘 잘못하고 있니?
미리 감사드립니다.
거의 모든 것. –
다음에 알 수 있도록 빠진 것이 무엇인지 알려주세요. –
특히'/ tops' 패턴 –