Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-17-2012, 04:15 PM   PM User | #1
StadriWebmaster
New Coder

 
Join Date: Aug 2011
Location: NY
Posts: 37
Thanks: 3
Thanked 2 Times in 2 Posts
StadriWebmaster is an unknown quantity at this point
Apache ignoring a simple 301 redirect?

I have this simple line of code in the sub-directory called "galleries"

Code:
redirect 301 automotive.html http://www.stadriemblems.com/galleries/automotive-patches.html
I just want automotive.html to redirect to automotive-patches.html

I have redirects in this style in my .htaccess file in my home directory, but in this sub-directory it doesn't seem to work. Why? I don't get any 500 errors when I visit automotive.html; it just doesn't redirect.

Last edited by StadriWebmaster; 02-17-2012 at 04:28 PM..
StadriWebmaster is offline   Reply With Quote
Old 02-29-2012, 12:11 AM   PM User | #2
brunounix
New to the CF scene

 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
brunounix is an unknown quantity at this point
If you had access to Cpanel use the redirect option, I had the same problem try using the full address in the url you want to redirect. Code Below.

redirect 301 http://www.mysite.com/url_old.html http://www.mysite.com/url-new/



I have helped =) midias sociais
brunounix is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:58 AM.


Advertisement
Log in to turn off these ads.