浏览过的商品

apache伪静态后get参数获取不到问题

发布日期:2015-08-05

apache伪静态后get参数获取不到问题,导致结算页总是提示请选择收货地区。方法如下:增加一个QSL,


#$Id: root.htaccess 17348 2008-12-23 05:53:22Z flaboy $


AddEncoding gzip .jgz

AddType "text/javascript;charset=UTF-8" .jgz


AddEncoding gzip .zcss

AddType "text/css;charset=UTF-8" .zcss


<IfModule mod_rewrite.c>

RewriteEngine  on


# 设置RewriteBase的值为你的商店目录地址

RewriteBase /

RewriteRule ^themes/.*\.(html|xml)$ / [F]

RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?$1 [L]

</IfModule>


<IfModule mod_security.c>

SecFilterEngine Off

SecFilterScanPOST Off

</IfModule>


改成

#$Id: root.htaccess 17348 2008-12-23 05:53:22Z flaboy $


AddEncoding gzip .jgz

AddType "text/javascript;charset=UTF-8" .jgz


AddEncoding gzip .zcss

AddType "text/css;charset=UTF-8" .zcss


<IfModule mod_rewrite.c>

RewriteEngine  on


# 设置RewriteBase的值为你的商店目录地址

RewriteBase /

RewriteRule ^themes/.*\.(html|xml)$ / [F]

RewriteCond %{REQUEST_FILENAME} \.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?$1 [QSA,L]

</IfModule>


<IfModule mod_security.c>

SecFilterEngine Off

SecFilterScanPOST Off

</IfModule>