Forum Moderators: phranque
I have a mod rewrite problem. Please look at my htaccess below:
RewriteEngine on
RewriteRule ^$ country.php?country=bla bla?%{QUERY_STRING}
RewriteRule ^bla bla/$ country.php?country=bla bla%{QUERY_STRING}
what i basically want with above url is that my website with country name "bla bla" should come up in the browser address bar www.website.com/bla bla/
Somehow this does not work when there is a whitespace in the country name which I want to use. Is there somehow a solution to this? I am totally newbie in this stuff so any help would be great.
p.s. of course I have more countries which i want to list with rewriting url's. Is there a possibility to use a single command that bypasses whitespaces in URL's?
Welcome to WebmasterWorld [webmasterworld.com]!
Please save yourself a lot of headaches now and in the future... Don't use whitespace in URLs, that's a "Windows filesystem thing", and causes all kinds of problems with non-MS applications. Use hyphens (preferred for search engine purposes) or underscores if you must, but not spaces. If you're really adamant about using spaces, you'll have to unicode them as %20.
Jim