Forum Moderators: phranque
my problem is i have 2 domains.
www.oldexample.com and www.newexample.com
i want when i type this in my browser:
www.oldexample.com/index.cfm?sid=50
it should go to
www.newexample.com/index.cfm?sid=50
but i just cant get it to work, ive tried like 1000 example's and stuff tried myself but nope.
this is what i have:
RewriteEngine on
Options +FollowSymlinks
Redirect ^/index.php?id=(.*)$ [newexample.com...] [R]
RewriteEngine on
Options +FollowSymlinks
RewriteRule ^index.php?id=(.*)$ [newexample.com...] [R=301,L]
[mysite.com...]
to
[mysite.com...]
and it works using:
RewriteRule ^([^/]+)/$category.php?cat=$1 [L]
Now - how do i do the same thing for 2 levels?
e.g.
[mysite.com...]
to
[mysite.com...]
Really need to get this done so id be very greatful for any help
Thanks!
Am not by any means good at mod_rewrite but is it not as simple as
RewriteRule ^([^/]+)/([^/]+)/$ category.php?cat=$1;cat2=$2 [L]
I am sure someone else will correct me if I am wrong :)
-George
[edited by: jdMorgan at 12:27 am (utc) on Mar. 18, 2004]
[edit reason] fixed missing space only [/edit]