Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Rewrite on sub domain.
02-03-2011, 01:38 PM #1
- Join Date
- Jan 2010
- In a dump
- Thanked 2 Times in 2 Posts
Rewrite on sub domain.
I have a sub domain sub.domain.com and i wanted to rewrite anything that was looking to a certain path on the domain say sub.domain.com/foo/bar/file.php and I wanted to rewrite it as sub.domain.com/bar/foo/file.php
My question is would I make a new htaccess file on the sub domain and then write in it:
RewriteEngine on RewriteBase / RewriteRule ^foo/bar/$ /bar/foo/ [NC,L]
RewriteEngine on RewriteBase /sub/ RewriteRule ^foo/bar/$ /bar/foo/ [NC,L]
Thanks.The answer my friend is blowing in the wind...