www.domain.com/~user --> www.domain2.com/~user

New to mod_rewrite? This is a good place to start.

www.domain.com/~user --> www.domain2.com/~user

Postby mk » Tue Nov 12, 2002 8:48 pm

Can someone please tell me why this doesn't work?

I'm trying to make it so that anyone going to

http://www.domain.com/~user/

gets the content at

http://www.domain2.com/~user/

I put this into the .htaccess file for ~user's directory:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/~(.+) http://domain2.com/~user [R,L]

Thanks,
mk :evil:
mk
 
Posts: 1
Joined: Tue Nov 12, 2002 8:44 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 8 guests

cron