Welcome to WebmasterWorld Guest from 54.242.83.7

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Using .htaccess for 301 redirection within a site

     
11:30 am on Mar 1, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts:12095
votes: 0


I need to redirect from one directory to another on a site. It's worked before with Redirect 301, but I've moved the site to a different host, and after trying every which way it's still getting an internal server error.

What's the correct way to do it (Linux/Apache)?

12:07 pm on Mar 1, 2002 (gmt 0)

Full Member

10+ Year Member

joined:Feb 5, 2002
posts:333
votes: 0


would a soft link work? ie from unix

using:

ln -s newdirectory olddirectory

this will create newdirectory which will be a soft link to olddirectory

9:42 pm on Mar 1, 2002 (gmt 0)

Senior Member

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

joined:Nov 11, 2001
posts:5459
votes: 3


Hey Marcia,
I made the same error.
The folder redirect will only work IF the old folder and a standard (even if blank)html page are in place.
4:38 am on Mar 3, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts:12095
votes: 0


Thanks guys. Bumping this - still not working, still need help (and some sleep).

Both directories are in place on the server, none needs to be created and I have no idea how to use anything but Apache redirect, which apparently I don't know enough about. The one I want redirection from has a decent ranking that pulls traffic, which needs to be discarded for the new one because of how the directories are named.

It all worked on the previous server, not on this one. And there are a few places it's really necessary.

5:04 am on Mar 3, 2002 (gmt 0)

Senior Member

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

joined:Nov 11, 2001
posts:5459
votes: 3


Marcia,
This thread helped me to understand the redirects within htaccess.

[webmasterworld.com...]

If your looking to do the redirects from within http config ( or what ever it is called?)when you have access to the servers apache?
Your going to need to look at redirects in apache.