怎么强制jpg,js,css等连接资源,如果不存在就直接404而不重写
我在本机架设了个网站
http://www.laji.com
网站文件夹下有2个文件,
.htaccess文件:
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteBase /
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg)$
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]
<?php echo $_GET['main_page'] ?>
RewriteCond %{REQUEST_FILENAME} !-s