FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General FutureQuest Hosting Support
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-25-2004, 01:19 PM   Postid: 109454
MPaul
Registered User
 
MPaul's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
Best way to redirect

I'm underway with my website redesign, and I'm almost finished. Since so much has changed (page name, extensions, location), I'll need to redirect the users (and bots). So I'm looking for the best redirection method, one that would be good for redirecting more than 50 pages.

Right now I know 3 ways of redirecting:

1) With the meta tag:
PHP Code:
<meta  http-equiv "refresh" content="0;url=http://www.mydomain.com/newpage.php"
2) With javascript:
PHP Code:
<script language="javascript">
<!--
location.replace("some_folder/newpage.php")
//-->
</script> 
3) With .htaccess

Now for the user, the redirection method doesn't really matter (except the Javascript method which for users who don't have Javascript enabled will not work). But I'm more worried about Google (and other search engines). Which redirection method makes the bot realise that: "Oh, this page will no longer be updated, it has been permanently been moved, and that we should remove it from our database and replace it with the new one."

I also don't want to make Google mad
MPaul is offline   Reply With Quote
Old 03-25-2004, 01:49 PM   Postid: 109461
Mandi
Blond and Caffeinated
 
Mandi's Avatar

Forum Notability:
703 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jan 1999
Location: Southern California, USA
Posts: 3,247
There are several good approaches - but I wanted to add that whenever I do this, I always make sure my custom 404 page makes reference to the recent redesign and points straight to a current site map, and also features an "Email us if you still can't find something" email link.
Mandi is offline   Reply With Quote
Old 03-25-2004, 02:03 PM   Postid: 109463
MPaul
Registered User
 
MPaul's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
Thanks Mandi, I was thinking about doing a custom 404 to help users. But about the sitemap, is there any script that can automatically create a sitemap for me, or do I have to do it myself?
MPaul is offline   Reply With Quote
Old 03-25-2004, 02:24 PM   Postid: 109468
Mandi
Blond and Caffeinated
 
Mandi's Avatar

Forum Notability:
703 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jan 1999
Location: Southern California, USA
Posts: 3,247
I believe there are some scripts that will spider your site and produce some sort of map - but I really prefer to do it by hand. Here's one I did that works well:

http://www.kerrysherbals.com/sitemap.shtml

An improvement to that would be to use anchor tags with name=___ and the # thingy in the URL, so the person could jump straight to the item on the appointed page.
Mandi is offline   Reply With Quote
Old 03-25-2004, 02:27 PM   Postid: 109469
Wassercrats
Site Owner
 
Wassercrats's Avatar

Forum Notability:
291 pts: An Honor To Be Around
[Post Feedback]
 
Join Date: Nov 2001
Posts: 7,089
Hey, I almost missed my cue! I wrote a script that could create a site map for you, but I have to run it from my own computer. It's under development, but it's useable. Here's a sample from a few months ago: http://www.polisource.com/PublicMisc..._Site_Map.html

The boxed parts on the bottom are easy to edit out if you don't want them. I'm looking for volunteers who will let me test it on their web sites, but I'm pretty aware of its abilities and issues.
Wassercrats is offline   Reply With Quote
Old 03-25-2004, 02:55 PM   Postid: 109471
MPaul
Registered User
 
MPaul's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2003
Location: Pensacola, FL
Posts: 539
Is that the spider you've been talking about?

Well, I'll do both. I'll do a sitemap by hand now , because some parts in my redesign are still missing. And when I'm finished with everything, you can try your spider on my site

I'll give you the ok, when I'm finished with everything (in about 2-3 weeks, things should be finished)
MPaul is offline   Reply With Quote
Old 03-25-2004, 03:06 PM   Postid: 109474
Wassercrats
Site Owner
 
Wassercrats's Avatar

Forum Notability:
291 pts: An Honor To Be Around
[Post Feedback]
 
Join Date: Nov 2001
Posts: 7,089
Yeah, that's the spider. In two weeks it will probably obey robots.txt (forgot to mention it doesn't yet) and pretty up maps of sites that have a bunch of directories with only one file in each. It's surprising how many websites have that.
Wassercrats is offline   Reply With Quote
Old 03-25-2004, 04:24 PM   Postid: 109475
Randall
Fuzzier than thou
 
Randall's Avatar

Forum Notability:
1187 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Nov 2002
Posts: 9,640
A redirect permanent in .htaccess will tell Google that the page has been moved.

Randall
Randall is offline   Reply With Quote
Old 03-25-2004, 04:54 PM   Postid: 109477
Chipmunk
Site Owner
 
Chipmunk's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: May 2002
Location: retired to my burrow, Iowa
Posts: 706
I always use .htaccess, which, if you use "Redirect permanent" (as Randall pointed out), works fine with Google. I've done a few reorgs, and I find Google quickly picks up on things.

I'm sooooo fed up with other bots, that two weeks ago I rewrote our robots.txt so Google is the only one allowed. Unfortunately, it turns out that Google's image bot is too stupid to realize that it's barred, and their tech "support"'s reply to my bug report was "explicitly exclude it". [ we need a "grumble, grumble, grumble" smiley ]

Mandi, excellent point about the custom 404 page! We've still got a few external links that are wrong, so I regularly monitor that, and our 404 has direct links to all the moved pages.

The easiest way I know of to create a site map is to do a word grep (including subdirs) of "title" from the root dir of your local site image, redirect the output to a file, then use a text transformation tool to change the contents of each title tag pair and filename into a link. If you have the right utilities, it takes about 5 minutes to set up the first time, then just a few seconds to re-run.

That gives you a simple and complete one, but the real time consuming part is deciding what to exclude, and how to lay it out.

MPaul, I'm sure you'll totally make Barry's day to let his spider onto your site. Barry, I might even let you spider mine, some day, purely to help you stress-test it (we're pushing 700 pages). We don't have a site map (our navigation is too easy), but do have a complete "species list" that I used to generate using the technique above.
__________________
my spam filter
critter pictures

banished by the chickenhawk...
"Chickenhawk n. A person enthusiastic about war, provided someone else fights it; particularly when that enthusiasm is undimmed by personal experience with war; most emphatically when that lack of experience came in spite of ample opportunity in that person's youth."
- from the Chickenhawk Database
United States Military enlistment standards
Chipmunk is offline   Reply With Quote
Old 03-25-2004, 06:02 PM   Postid: 109479
Andilinks
Site Owner
 
Andilinks's Avatar

Forum Notability:
338 pts: An Honor To Be Around
[Post Feedback]
 
Join Date: Apr 2002
Location: San Antonio, Texas
Posts: 7,204
In two years my site has grown from 12 to over 80 pages. Google has always kept up well without any special prompting though I seldom abandon file names, branching and linking new pages from existing names. This keeps other, non-search-engine external links intact as well.

But when I have used redirects several times, I have used meta-tag redirects which seem to work much faster and Google has worked just fine for me with those.

When you move content and while Google is still pointing to the old page, the redirect will still send visitors to the new page from Google--it shouldn't matter. Google always catches up on indexing quickly though PageRank takes a little longer.

Just be sure the new location is generously linked everywhere using the new file name and Google will reindex at its usual speedy pace.

Andi
__________________
@andilinks TwitterAndrea Silver FB
Andilinks is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:34 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.