Problem with +
			7 posts
			 • Page 1 of 1
		
	
Problem with +
I have the rule below which works most of the time except when productname.html includes a + such as abc+123.html, what is returned is abc 123.html - the + is converted to a space.
How can I retain the +
# This rule is to manage products when URL = http://www.domain.com/brandname/productname.html
RewriteRule /([a-z,0-9\+\-\%\_]+)/([a-z,0-9\+\-\%\_]+).html /$1/display.html\?var=$2 [I,L]
			
		How can I retain the +
# This rule is to manage products when URL = http://www.domain.com/brandname/productname.html
RewriteRule /([a-z,0-9\+\-\%\_]+)/([a-z,0-9\+\-\%\_]+).html /$1/display.html\?var=$2 [I,L]
Re: Problem with +
Please specify what version of IIS you are using. If it's IIS 7, please see this article for solution: http://www.helicontech.com/articles/plus-sign-in-iis7/
			
		Re: Problem with +
Hello,
Please enable logging in httpd.conf by putting
RewriteLogLevel 9
Then make the test request again and show rewrite.log records for that request.
			
		Please enable logging in httpd.conf by putting
RewriteLogLevel 9
Then make the test request again and show rewrite.log records for that request.
Re: Problem with +
Hi Anton, how do I do that, I am using v2.x
Line 15: Unrecognized string: RewriteLogLevel 9
			
		Line 15: Unrecognized string: RewriteLogLevel 9
Re: Problem with +
Sorry, I've mixed up your version.
Please try to change your rule as follows:
RewriteRule /((?:[a-z,0-9\+\-\%\_]|\%2b)+)/((?:[a-z,0-9\+\-\%\_]|\%2b)+)\.html /$1/display.html\?var=$2 [I,L]
			
		Please try to change your rule as follows:
RewriteRule /((?:[a-z,0-9\+\-\%\_]|\%2b)+)/((?:[a-z,0-9\+\-\%\_]|\%2b)+)\.html /$1/display.html\?var=$2 [I,L]
			7 posts
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 1 guest