View Full Version : Redirecting / to /forum - help!
Reejoc
10-18-2005, 06:58 AM
Hi,
I have phpbb setup in /forum
I want all visitors to my site to be automatically redirected to /forum
At the moment I'm successfully using a index.php to do this:
<html>
<head>
<META HTTP-EQUIV="REFRESH"
CONTENT="0;URL=http://www.domain.com/forum/index.php?f=1"/>
</head>
</html>
However I don't think search engines are following this redirect and so my page isn't being indexed.
I tried to use the Directadmin redirect feature instead:
Local URL Path /
Destination URL http://www.domain.com/forum
This didn't work.
Can anyone think of a way of accomplishing this, so that google etc will index my site?
Thanks
squirrelhost
10-18-2005, 07:36 AM
how about in your public_html
delete any index.html file, then do:
ln -s forum/index.php index.html
then try to re-load
http://www.domain.com/
in your browser.
Reejoc
10-18-2005, 08:43 AM
I don't understand what I should do with "ln -s forum/index.php index.html"
??
squirrelhost
10-18-2005, 10:59 AM
you have no ssh access to box ?
this just sets up a symbolic link so that
directing a browser to
http://www.domain.com
will actually load
http://www.domain.com/forum/index.php
Maynard
10-18-2005, 04:05 PM
At the user level, where CLI access to ln is scarce, you can try two different things. One method to try is to add to .htaccess file in .../public_html/ the following: REDIRECT / <full URI to forum>
where <full URI to forum> is the http://..... which could even be offsite.
The other method is to use the Redirect option on DA menus, with the same two fields as above.
Reejoc
10-18-2005, 05:20 PM
Originally posted by Maynard
At the user level, where CLI access to ln is scarce, you can try two different things. One method to try is to add to .htaccess file in .../public_html/ the following: REDIRECT / <full URI to forum>
where <full URI to forum> is the http://..... which could even be offsite.
The other method is to use the Redirect option on DA menus, with the same two fields as above.
Thanks, but neither of these methods worked for some reason.
I think the only option will be to have an entry page :mad:
resolveit
10-19-2005, 04:29 AM
Simply edit your original index.html and provide a link to the searchengines to follow. This way both you and the searchengines are happy :)
<html>
<head>
<META HTTP-EQUIV="REFRESH"
CONTENT="0;URL=http://www.domain.com/forum/index.php?f=1"/>
</head>
<body>
If your browser does not redirect you automatically click <A HREF="http://www.domain.com/forum/index.php?f=1">here to go to our forum</a>
</body>
</html>
As the refresh time is set to 0 nobody with recent browsers will see the text and link and people using antiquated browsers will also be able to find your forum. Most important searchengines will start indexing your forum because there is not a link to it from your main page.
Regards,
Reejoc
10-19-2005, 06:21 AM
Thanks, that did the trick!
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.