homepage Welcome to WebmasterWorld Guest from 54.226.252.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
301 redirect
dailypress




msg:3898787
 4:54 pm on Apr 23, 2009 (gmt 0)

I moved my site from Example.com/folder to Example.com/ext/folder
Should I use a 301 redirect to all pages? Do I have to upload all 300 pages individually and do a redirect? The pages are pure HTML using dreamweaver.

Is there any easier way?

Now I have other files in my Exmaple.com/ directory and therefore dont want ALL files to be redirected.

Unfortunately moving to /ext/ folder was necessary or else I wouldnt have done it.

Could I list all the URL's in one htaccess?

Please let me know the best way. Any links or threads that I can read more about redirecting and what other people do?

 

g1smd




msg:3898819
 5:26 pm on Apr 23, 2009 (gmt 0)

Keep the same URLs 'used on the web' by setting up a rewrite instead of a redirect.

That is, when someone requests the URL example.com/folder/somepage your server gets the content from the file at /ext/folder/somepage without revealing the internal location has changed.

The rewrite is just a couple of lines of code if you're using an Apache webserver.

In the case of using a rewrite, you keep the same URLs in the links on your pages, and people see and use the same URLs they have always used.

mayest




msg:3898820
 5:28 pm on Apr 23, 2009 (gmt 0)

Check out the Library for the Apache forum [webmasterworld.com] where there are several posts on beginning mod rewrite.

You shouldn't need 300 RewriteRule's if you can figure out the regular expressions to capture the file names that you need to rewrite.

dailypress




msg:3898958
 8:14 pm on Apr 23, 2009 (gmt 0)

Keep the same URLs 'used on the web' by setting up a rewrite instead of a redirect.

Whats the advantage of doing a rewrite?

The disadvantage to that is people may still use the old URL as a backlink. Right?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
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