homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

Automatic 301 redirect generator for htaccess?
site directory changes - many files need moving

5+ Year Member

Msg#: 3839951 posted 12:35 am on Feb 2, 2009 (gmt 0)

I need to re-organise the directory structure of part of my website. This means changing the URLs of many HTML and image files.

Is there such a thing as an automatic 301 redirect generator that I can use for the .htaccess file?

i.e. this 'generator' would take a snapshot _before_ the changes and another _after_ the changes and then automatically generate a list of 301 redirects to paste into the .htaccess file.

If so it would save a large amount of work in manually entering each 301 redirect statement, and the errors naturally associated with doing it manually.

I am using Dreamweaver on a Windows XP system. The website concerned is: www.astrocruise.com

Many thanks



WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 3839951 posted 1:10 am on Feb 2, 2009 (gmt 0)

In most cases, there's no need for one rule per URL.

If the URL structure has been properly designed, then a small number of patterns can be used, each matching hundreds or even thousands of URLs and programatically redirecting to the correct new format.

If that's not an option, then use a redirect script that captures all of the requests for old URLs, looks up the new URL in a table, or database, and then issues the appropriate redirect HEADER data back to the browser.


5+ Year Member

Msg#: 3839951 posted 3:36 pm on Feb 2, 2009 (gmt 0)

Many thanks for your help. I am semi-competent with Dreamweaver but I am not up to writing scripts, unfortunately. All I really need is a 'before' and 'after' sitemap with differences shown, preferably also with 301 redirects inserted. Dreamweaver may be able to do this (maybe I should ask on that forum) by saving the current sitemap, saving the new (modified) sitemap and comparing the two files to show differences. All the differences would need editing but at least it should be better than doing the whole thing manually. I may be able to do the same thing with the XML sitemap generator. But I feel sure there must be a utility somewhere to automatically generate the 301 redirects.

Many thanks

Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved