Welcome to WebmasterWorld Guest from 3.227.208.153

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

301 Redirect Question - Files To Do?

Do I just do .html and .php, or EVERYTHING?

     
11:22 pm on Jan 8, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 8, 2004
posts:9
votes: 0


Hello, all! New to this forum, so please forgive any faux pas'es (whatever the plural is!)

I have completely re-designed our company web site from a prior-to-my-arrival "legacy" site. The old site was straight HTML, but my new site uses extensive PHP pages.

As I prepare to do a bunch of 301 redirects (the Google-friendly and therefore preferred method of making the switchover), I have a couple of questions:

1. Do I JUST do the legacy .html and .js and (very few) .php pages/files?

2. Do I need to do .pdf (Adobe Acrobat) files?

3. How about graphics (.gif, .jpg, and an odd .eps (downloadable)) files?

4. How about "backup" files (that were re-named to preserve working code while new code was tested?

Thanks in advance for any and all replies! By the way, glad to be here, and more than willing to help anybody with dynamic Web sites!

Dan Ford

1:47 am on Jan 9, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


Dan,

Welcome to WebmasterWorld [webmasterworld.com]!

You'll need to redirect any resource which is still referred-to by its old URL, and which you have replaced with a new URL.

If you redirect an old page to a new page, and the new page does not refer to any images or scripts by their old URL, then those images and scripts need not be redirected for the new page.

However, if you have renamed an image or script, and intend to continue to support an old page that refers to them by their old URL, then you must redirect those image or script requests. This would apply to old pages cached elsewhere - such as in Google's page archive (Google cache) and in Internet Archiver's archives as well.

It all really depends on what you've done, and to what extent you wish to support your legacy pages.

If you have some time left before the changover, you might consider marking the entire existing site with short-term expires headers, so that your changeover will go quickly. Otherwise, those old pages will consider to exist in network caches until the currently-specified expiry period has passed.

Jim