Forum Moderators: phranque

Message Too Old, No Replies

Re-directs

         

geoffb

10:40 pm on Jan 15, 2010 (gmt 0)

10+ Year Member



Hi,

Just started work for a company and there main website is being reached by a re-direct to a specific folder in there server structure ie:

.root
.old_website (folder holding all old website folders/files)
.new_website (" ")

So the user is being re-directed to the ".new_folder" by means of the control panel within our web provider.

So whats my problem?

Well, some of the old pages from ".old_website" are still showing good rankings and my boss needs me to set up a re-direct on specific page, that only get re-directed to specific pages.

So if www.mysite.com/old_folder/ball_point_pens.html is getting good rankings i need to target that page and send it to a new page in the new site like: www.mysite.com/new_website/ball-point-pens.html

Just wondering how to do this please, the initial re-direct to a specific folder has thrown me thats all!

Cheers
geoffb

jdMorgan

12:35 am on Jan 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Delete the control panel redirect after adding new mod_rewrite rules to either the /old_site <Directory> container in the server config file, or to the top-level .htaccess file in /old_folder. The first rules should do the specific page-by-page redirects, and the final rule should do the 'entire domain' redirect as a catch-all at the end.

Mark each rule with a [L] flag, so that if it is invoked, no further rules will be processed.

Jim

geoffb

8:54 am on Jan 16, 2010 (gmt 0)

10+ Year Member



So the redirect that is set up on our hosts server for the domain that is pointing to the .new_site folder has to go?

Geoffb

jdMorgan

3:15 pm on Jan 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, because it will otherwise redirect *all* requests, before your page-by-page redirect code ever has a chance to run.

Jim