5
나는 모든 www.site.com/hello to www.site.com/index.php?p=hello
을 다시려고하고 (.htaccess
에서) 다음 코드로 작동합니다한다 RewriteCond
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)/?$ /index.php?p=$1
그러나 나는 그렇게 www.site.com/?p=hello
이 www.site.com/?p=hello
나는 다음과 같은 코드를 해봤지만
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\?p=)
RewriteRule ^([^/]*)/?$ /index.php?p=$1