homepage Welcome to WebmasterWorld Guest from 54.237.54.83
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Using .htaccess for 301 redirection within a site
Marcia




msg:1498239
 11:30 am on Mar 1, 2002 (gmt 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)?

 

incywincy




msg:1498240
 12:07 pm on Mar 1, 2002 (gmt 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

wilderness




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

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.

Marcia




msg:1498242
 4:38 am on Mar 3, 2002 (gmt 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.

wilderness




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved