| Posted: 10 June 2011 at 12:39pm | IP Logged
|
|
|
Thank you Anton. The issue that I've been facing is that when I use your rule above or my own (something like ^/?(..)/(.+)/?$), and send a request like
www.site.com/ca/san+francisco
The default.aspx page loads fine and rewriting takes place but all other files like css, images and js scripts in the page now have "/ca/" as their base URL instead of the root. Of coruse, those resources are not found having /ca/ in their path and thus the page is broken.
I tried to put "RewriteBase /" both before and after each rule but that doesn't help. So if I only get three wishes, I would like to spend my second wish and ask you how to fix that because I have no idea and I tried just about everything
Thanks again fellows. Good stuff!
|