Welcome to WebmasterWorld Guest from 54.163.168.15

Forum Moderators: brotherhood of lan & mack

301 redirect

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

WebmasterWorld Senior Member 5+ Year Member



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?

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

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



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.

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

5+ Year Member



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.

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

WebmasterWorld Senior Member 5+ Year Member



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?

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month