너무 많은 코드를 사용하여 하위 폴더 URL을 리디렉션했지만 작동하지 않습니다.Htaccess가 내 도메인 하위 폴더에만 작동하지 않습니다.
From :: http://www.mydomain.com/doctor/searchresult.php?txtcity=Chennai&txtarea=Annanagar
To :: http://www.mydomain.com/doctor/Chennai/Annanagar
사용 된 htaccess로 코드가 방금 두 번째 나열된 URL에 최초의 URL을 리디렉션하려고하는 가정
RewriteRule ^doctor/([a-zA-Z0-9_-]+)/searchresult$ /doctor/searchresult.php?txtcity=$1&txtarea=$2 [R=301,L]
RewriteRule ^([a-zA-Z0-9_-]+)/doctor/$ searchresult.php?txtcity=$1&txtarea=$2
RewriteRule ^doctor/([a-zA-Z0-9_-]+) /doctor/searchDocResult.php?selFindDocCity=$1&txtFindDocAreaRzip=$2 [L]
무엇을하려고합니까? 첫 번째 규칙은 외부 리디렉션입니다 ('? txtcity' 변형이 공개됨). 규칙 참조는'$ 1'과'$ 2'와 일치하지만 각각 하나의 캡처 그룹 만 있습니다. 그리고이 상황에서'searchDocResult.php'는 무엇을합니까? –