2012-10-24 45 views
1

以下部分写入到我的.htaccess文件中。我正在使用ZenCart“CEON URI映射”模块。我遇到问题,因为PHP脚本的一部分会查找某个变量,并在找到时显示一个CSS显示框。使用.htaccess不重写具有特定GET参数的URL。

我需要做的是让htaccess在设置时不重写URL的“amznPmtsOrderIds”GET参数。

我将如何将此主题融入了以下内容:

# BEGIN CEON URI MAPPING 
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx]) 
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC] 
# Don't rewrite admin directory 
RewriteCond %{REQUEST_URI} !^/admin [NC] 
# Don't rewrite editors directory 
RewriteCond %{REQUEST_URI} !^/editors [NC] 
# Don't rewrite cPanel directories 
RewriteCond %{REQUEST_URI} !/cpanel [NC] 
RewriteCond %{REQUEST_URI} !/frontend [NC] 
RewriteCond %{REQUEST_URI} !\.mp4$ [NC] 
RewriteCond %{REQUEST_URI} !/livehelp.*$ [NC] 
RewriteCond %{REQUEST_URI} !/rest.php/ 
RewriteCond %{REQUEST_URI} !/restInterface\.php.*$ 
# Handle all other URIs using Zen Cart (index.php) 
RewriteRule .* index.php?%{QUERY_STRING} [L] 
# END CEON URI MAPPING 

感谢您的帮助。

回答

1

此行之前立即...

# Handle all other URIs using Zen Cart (index.php) 

...补充一点:

# Don't rewrite any URIs with a "amznPmtsOrderIds" GET parameter 
RewriteCond %{QUERY_STRING} !amznPmtsOrderIds [NC]