I'm fairly new to using mod_rewrite. I can get myself around with some easy rules so far. I am seeking assistance in creating a new one that I can't figure out just yet.
I have many URLs with several levels such as:
http://domain.com/overview/
http://domain.com/product-information/
http://domain.com/product-information/partners/
These are just three examples. I have far too many for me to do this by hand for each one. I need ALL links ONLY WITHIN the "domain.com" domain to be redirected to the same link, only with /us/ directly after the domain name, but before ANY additional characters.
http://domain.com/us/overview/
http://domain.com/us/product-information/
http://domain.com/us/product-information/partners/
As I stated in the previous sentance, ONLY WITHIN the "domain.com" domain... I have to be able to selectively do this ONLY for the ".com" extension. I also have
http://domain.co.uk pointing to the same server, and it's files are part of the same site. A user is redirected to the appropriate web files based on the IP address their browsing with. I CAN NOT have the following change happen:
http://domain.co.uk/us/...etc...
I hope that I've explained my requirements clearly enough. I would appreciate some input as soon as possible. Thank you very much coders.