GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-May-2004, 21:42
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

redirecting index.php


Is there another way to redirect the index page in PHP without using the header() function.
I want to redirect but without upsetting any bots that are indexing the current site.

I don't want to mess around with .htaccess
Last edited by JUNK KED : 30-May-2004 at 21:49. Reason: no good reason :)
  #2  
Old 03-Jun-2004, 21:49
cs2 cs2 is offline
Member
 
Join Date: May 2003
Location: California
Posts: 107
cs2 will become famous soon enough
.htaccess really doesn't constitute "messing around." I mean, what is so difficult about...
Code:


As for other methods using PHP, the only thing that comes to mind other than header() (which doesn't cause SE's heartburn, BTW) is to 'echo' a Javascript or Meta "refresh" (which is less reliable, and may cause problems with search engines).

P.S. Ignore the URL tags in the code block above. It is automatically added by the forum software (an anti-spam feature with an undesired side-effect?).
__________________
The Whole Internet, LLC
Visit our Homepage, -or-
use our online CSS Editor
  #3  
Old 04-Jun-2004, 00:01
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

.htaccess Not Allowed


I tried your suggestion but discovered that .htaccess is not allowed on my budget server.

Anyway I am moving so no matter.

Googlebot did not like the header() function and dropped my index page from a different site.

I do have another site using a forwarded + masked address by godaddy.com and googlebot index that and gave it a 4 on page rank.
The page it points to is a free page on geocities!!!! Go figure.

Thanks for reply.
  #4  
Old 04-Jun-2004, 09:23
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
What I used once was including the file..

PHP Code:

<?php 
include './whatever.html';
?>

but that might give problems with links if you don't have them setup correctly
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #5  
Old 04-Jun-2004, 16:50
JUNK KED JUNK KED is offline
Junior Member
 
Join Date: Oct 2003
Location: uk&ireland
Posts: 85
JUNK KED will become famous soon enough

Include To Fake Index


Hi thanks for reminding me of the simplest option.

I could include a clone of my new index but with altered links to new site or just leave the clone as the index page of the old site.

This would help, the pages that were indexed by google bot were all forwarded at my registrars server and would have been lost compeltely.

Can any one else recommend how long to leave the old site running to ensure a smooth transition and not to loose trafffic.
  #6  
Old 04-Jun-2004, 17:44
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Quote:
Originally Posted by JUNK KED
Can any one else recommend how long to leave the old site running to ensure a smooth transition and not to loose trafffic.
For as long as you can, when I moved this site from www.desilva.biz/forum/ to www.gidforums.com December 15th, 2003, I put in place the re-directs and they're still there and Yahoo/Slurp is STILL fetching some of these pages today!

You have no worries with Googlebot, she's super-fast.
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm here to say "hi" nishaa New Member Introductions 4 05-May-2004 11:40

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.