나는 leasing.php와 article.php라는 두 개의 하위 사이트가있는 간단한 PHP 사이트에서 작업하고 있습니다. 이 잘
http://domain/leasing/article-name (? 쇼 article.php 별칭 = $ 변수)를 작동 - -이되지apache .htacces - url에 다시 작성
내 .htacces
http://domain/leasing (쇼 leasing.php) : 나는 사용자에게 원하는
이 같은이 하위 사이트를 참조 파일 :
RewriteEngine on
RewriteRule ^(/$|$) index.php [NC,L]
RewriteRule ^leasing leasing.php [NC,L]
RewriteRule ^leasing/([A-Za-z0-9-]+)/?$ article.php?alias=$1 [NC,L]
브라우저에서 article.php 페이지를 보려면 RewriteRules를 어떻게 변경합니까?
LazyLizzard 답변 중 하나가 도움이 되었다면 선택하십시오 (원하는 경우 upvote). 이러한 답을 연구, 테스트 및 작성하는 데는 시간이 걸립니다. 묻지도 않고 실행하기도 쉽지 않습니다. – BeetleJuice