.htaccess 从mo重写中排除get参数
* 如何将其从mod_重写中排除 我试过这样的东西.htaccess 从mo重写中排除get参数,.htaccess,mod-rewrite,rewrite,.htaccess,Mod Rewrite,Rewrite,* 如何将其从mod_重写中排除 我试过这样的东西 AddDefaultCharset UTF-8 RewriteEngine on RewriteCond %{REQUEST_URI} !(images|\?pages=.*?) [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?%{QUERY_STRING} [L] #<I
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond %{REQUEST_URI} !(images|\?pages=.*?) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING} [L]
#<IfModule mod_security.c>
#SecFilterEngine Off
#SecFilterScanPOST Off
#</IfModule>
#<IfModule security_module>
#SecFilterEngine Off
#SecFilterScanPOST Off
#</IfModule>
#<IfModule security2_module>
#SecFilterEngine Off
#SecFilterScanPOST Off
#</IfModule>
您可以使用:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/images [NC]
RewriteCond %{QUERY_STRING} !(^|&)pages= [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
i、 e.使用RewriteCond%{QUERY\u STRING}匹配查询参数。提供更多详细信息^|&pages=将排除甚至是空的?pages=URL