RewriteRules
으로 디렉토리의 실제 파일을 모두 무시할 수 있습니까? 내 말은, "flatlinks"또는 "permalinks"(http://example.com/not/an/actual/file/path/)를 만들고 있다는 것입니다. 그 page.php가 처리합니다. 이것은 RewriteCond
으로 다른 모든 파일을 '무시'하는 경우에만 작동합니다. 내 .htaccess 파일의 디렉토리에있는 모든 실제 파일에 대해 RewriteCond
을 만드는 대신 실제 파일이 있는지 확인하고, 그렇지 않으면 page.php가 처리하도록 알려주는 방법이 있습니까?.htaccess가있는 파일을 "무시"
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteCond %{REQUEST_URI} !^/somefile\.php$
RewriteCond %{REQUEST_URI} !^/someotherfile\.php$
RewriteCond %{REQUEST_URI} !^/page\.php$
RewriteRule ^([^/]*)$ /page.php?p=$1 [L] [NC]
대우를받습니다! 당신은 처음 이었으므로 당신은 대답을 얻습니다. – bwoogie