I use .htaccess Mod Rewrite to send the URL to index.php, which then parses the URL and builds each page of my website. This works perfectly fine, allowing me to easily manage clean URLs using PHP instead of .htaccess.
参看。 -> go to index.php, whichload a page with multi PHP file setjoint
然而,I m试图允许某些PHP文件作为普通PHP文件装上(没有将URL发送到分区)。
Ex: http://domain.com/some/url/here/ still works as mentioned above. http://domain.com/specialexception.php will load as a regular php file, without sending to index.php
我有以下法典:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^specialexception.php$ [NC]
RewriteRule !.(css|gif|jpg|png|ico|txt|xml|js|pdf|htm|zip)$ /path/to/index.php [NC,L]
</IfModule>
然而,现在完全无视RewriteCond行。
我感谢任何帮助/帮助。
谢谢。