.htaccess rewriterule에 문제가있는 것 같습니다.PHP에서 리디렉션 규칙을 다시 작성
[website]/[parameter1-text]/[parameter2-text]
내 htaccess로에있는 다음과 같은 : 지금까지 너무 좋아
RewriteRule ^(.*)/(.*)$ dispatcher.php?s1=$1&s2=$2
는 내가 뭘 원하는 양식의 디스패처입니다. 그러나 S1과 S2는 데이터베이스 (MySQL의)에 일치 할 몇 가지 변수와 다음과 같은 형식의 스크립트 view.php 공급 진정한 변수 반환 :이 적절하게 사용하여 헤더를 리디렉션 할 수있는 방법
view.php?category=[s1]&subcategory=[s2]&objects=5
을 ("위치 : /view.php [...]"); 및 (예 : http://example.com/CARS/BLUE http://example.com/SLIPPERS/RED/) 변경되지 않은 URL을 가진 모든