我有一个.htaccess文件影响我的子域文件夹,我该如何防止发生。希望子域独立运行.htaccess文件。这里是我的.htaccess代码.htaccess不影响其他文件夹
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z]*)/?$ goto.php?page=$1
ErrorDocument 404 PageNotFound
IndexIgnore *
####Protect the system from machines with worms
RewriteRule (cmd|root)\.exe - [F,E=dontlog:1]
##Search Business
RewriteRule %{QUERY_STRING} search.php?id=$1
RewriteRule ^Customise/([0-9]*)/([A-Za-z-]*)$ customise.php?id=$1
#### To hold and redirect css/images/js files
RewriteRule images/(.+)?$ images/$1 [NC,L]
RewriteRule css/(.+)?$ css/$1 [NC,L]
RewriteRule js/(.+)?$ js/$1 [NC,L]
RewriteRule uploads/(.+)?$ uploads/$1 [NC,L]
试试这个http://stackoverflow.com/questions/3135530/urgent-how-to-stop-htaccess-to-work-on-a-subdomain – Peeyush