cancel
Showing results for 
Search instead for 
Did you mean: 

redirect webpage to forum using a different domain

daz
Newbie
Posts: 6
Registered: ‎14-01-2008

redirect webpage to forum using a different domain

hi, im sure this has probably already covered, but this is my first website, and specific instructions relating to this would help stop any mistakes
okay i have setup a forum in ccgi http://ccgi.username.plus.com/forums
and  i have a domain www.mydomain.co.uk pointing to my forum, what i want to do is have www.mydomain.co.uk and www.mydomain.co.uk/forums to redirect straight away to http://ccgi.username.plus.com/forums
and also have http://ccgi.username.plus.com/forums to show as mydomain.co.uk/forums, hiding the ccgi.username

many thanks for any help, and the more idiot proof the better  Wink
edit to say, i havent got a website page at all, and just want to run the forum
5 REPLIES 5
ffupi
Grafter
Posts: 370
Registered: ‎01-08-2007

Re: redirect webpage to forum using a different domain

Basically the domain needs to point to the root of your ccgi space. Any subdirectory will then be addresses, e.g. yours /forums. And the Forum needs to be told the correct URL of the domain.
In this thread the points 1) - 6) only: http://community.plus.net/forum/index.php/topic,46224.0.html
In the domain control tool the settings can be done differently (regarding point 5) 😞
Left field        Type    Pri    Right field
domain.tld.a84.92.1.4
wwwa84.92.1.4
mx20mx.last.plus.net.

(http://community.plus.net/forum/index.php/topic,1043.0.html )
Don't forget then to set in the forum admin panel the correct URL .
daz
Newbie
Posts: 6
Registered: ‎14-01-2008

Re: redirect webpage to forum using a different domain

ffupi, youre a legend, it works perfectly, thank you
daz
Newbie
Posts: 6
Registered: ‎14-01-2008

Re: redirect webpage to forum using a different domain

i dont suppose you have a script, that i could use to redirect
www.mydomain.co.uk to www.mydomain.co.uk/forums?
and thanks again for your help so far
ffupi
Grafter
Posts: 370
Registered: ‎01-08-2007

Re: redirect webpage to forum using a different domain

Hello
Happy that it works.
Can't help with scripts which are put in root, needs to be an index.php file. Someone else will be able to help.
Alternatively, you could put an .htaccess file into root of ccgi. See the points 7) and 8) in the above linked thread. This would redirect the www.domain.tld into the subdirectory /forums without showing the subdirectory in the URL. Basically http://www.domain.tld would show the forum straight away.
.htaccess would contain this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mydomain.co.uk$ [nc]
RewriteRule (.*) /forums/$1
(This is quite simple I was told, and there was a thread about a more sophisticated redirect).
Don't forget then to adapt in the Forum admin panel the URL.
Greetings
daz
Newbie
Posts: 6
Registered: ‎14-01-2008

Re: redirect webpage to forum using a different domain

ill have a look. thanks very much for your help