2009-07-22 4 views
2

index.php를 다시 작성하려고합니까? p = page to/page /하지만 작동하지 않습니다!

이 늘 일 :

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

RewriteRule .* index.php?p=$1 [PT,L] 

도와주세요!

답변

2

역 참조 $1RewriteRule (그룹은 괄호로 정의 됨)의 왼쪽 그룹에 해당하지 않습니다. 다음 중 하나를 시도해보십시오.

RewriteRule .* index.php?p=$0 

# - or - 

RewriteRule ^(.*)$ index.php?p=$1