June 4, 201016 yr Hi everyone, I'm completely stumped. I'm having some difficulty with what I suspect is a simple problem. The following is working really well except for links that have a %20 (space) in the original URL. Everytime I go to the new address created by the .htaccess file in my browser the %20 is changed to a 0, so I get an error page. Is there any way I can have the exact URL which includes %20 passed to the browser. The first rule below works perfectly, the second doesn't due to the %20. an example of a new address would be pds.ca/Mauricie. this would send the user to the data.gointranet address. RewriteEngine On RewriteRule ^Mauricie http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS49&cl=Mauricie&term=QC&otype=region RewriteRule ^Montreal http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS38&cl=Montreal%20Est&term=QC&otype=region Thanks in advance
June 4, 201016 yr Try RewriteEngine On RewriteRule ^Mauricie http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS49&cl=Mauricie&term=QC&otype=region RewriteRule ^Montreal http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS38&cl=Montreal\ Est&term=QC&otype=region
June 4, 201016 yr Author SERIOUSLY. I can't thank you enough. That totally worked. I have been fighting with this for 3 days. I can't believe it was such a simple fix. Thanks Again Mark Try RewriteEngine On RewriteRule ^Mauricie http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS49&cl=Mauricie&term=QC&otype=region RewriteRule ^Montreal http://data.gointranet.com/unitloc/pdsca/search.cgi?type=location&cu=PDS38&cl=Montreal\ Est&term=QC&otype=region
Create an account or sign in to comment