Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Seeking mod_rewrite assistance
01-13-2010, 10:27 PM #1
- Join Date
- Oct 2007
- Thanked 0 Times in 0 Posts
Seeking mod_rewrite assistance
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:
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.
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:
I hope that I've explained my requirements clearly enough. I would appreciate some input as soon as possible. Thank you very much coders.
Last edited by thomasgrant; 01-13-2010 at 10:32 PM.