Forum Moderators: phranque

Message Too Old, No Replies

Best Redirect Solution

         

tigers34

1:55 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



We had three websites. www.site1.com, www.site2.com, www.site3.com. We have decided to consolidate www.site2.com and www.site3.com and make them directories within www.site1.com.

So, I'm trying to figure out whether or not I can implement 301 redirects. Some of the file names will change once they are moved to the directories. Is it possible to create 301 redirects that are file specific? Or would it be better to put redirects in the pages themselves? Any feedback would be very appreciated!

bcc1234

1:59 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are using apache, then you can define per file, per directory, and per host redirects.

tigers34

3:17 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



I have uploaded the .htaccess file, but it doesn't appear to be doing anything.
It's structured like this:

redirect permanent / [site1.com...]

Does this appear incorrect?

tschild

4:24 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



The form as described in the Apache documentation would be

Redirect permanent / [site1.com...]

or

Redirect 301 / [site1.com...]

or

RedirectPermanent / [site1.com...]

I haven't found a statement on whether directive names are case sensitive, but better to assume they are.

bcc1234

7:34 pm on Jul 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check your configuration files to make sure the server allows directives in htaccess.