URL redirection

Status
Not open for further replies.

Shovon

New Member
Messages
13
Reaction score
0
Points
0
My site's homepage link is something like something.com/forums/index.php. I used a html page named index.html in my public_html folder which redirects page to that php page. But I think it's a problem for search engine spiders. Is there any way to point directly to that php page?
 
Last edited:

QuwenQ

Member
Messages
960
Reaction score
0
Points
16
Chances are, you're using a meta redirect, which does severely hurt search engine bots ranking of you, since so many spam sites use it.

In order to use a permanent, direct redirection, delete your index.html page, replace it with index.php, and add this code to it and nothing else:

PHP:
<?
header( "HTTP/1.1 301 Moved Permanently" );
header( "Status: 301 Moved Permanently" );
header( "Location: fullsiteurlgoeshere" );
exit(0); // This is Optional but suggested, to avoid any accidental output
?>
 
Status
Not open for further replies.
Top