Welcome to WebmasterWorld Guest from 54.161.149.107

Forum Moderators: Ocean10000 & incrediBILL & phranque

Using .htaccess for 301 redirection within a site

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

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



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)

10+ Year Member



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)

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



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)

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



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)

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



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month