Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder StadriWebmaster's Avatar
    Join Date
    Aug 2011
    Location
    NY
    Posts
    42
    Thanks
    4
    Thanked 2 Times in 2 Posts

    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 05:28 PM.

  • #2
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •