Log in

View Full Version : linking 2 url's to 1 forum


Marka Ragnos
10-20-2007, 03:02 PM
Ok this is a weird question and i hope you can understand what i'm trying to ask:

www.bsg-online.be is a forum for battlestar galactica but i want to expand it to all other sci fi shows for that i want to add a second url, i know i can just link it to bsg-online but thats not what i want.

For example lets say i have scifi-shows.be (which i dont have, just an example)


http://bsg-online.be/forum/showthread.php?t=1533

is a link to a thread, can i make it happen for scifi-shows?

http://scifi-shows.be/forum/showthread.php?t=1533

2 domains 1 forum.

Thanks,
Kenny

Kirk Y
10-20-2007, 03:27 PM
Use mod_rewrite to redirect links from one of the domains. Place the following in an .htaccess file in domain 1's public webspace.

RewriteEngine On
RewriteCond %{HTTP_HOST} domain1.com/forum
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule .* http://domain2.com/forum/%1 [R]Untested... but should work.

Marka Ragnos
10-21-2007, 09:37 AM
ok thanks i'll check it out

never worked with mod_rewrite before.