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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts

    .htaccess file not redirecting

    What on Earth am I doing wrong with this .htaccess file?

    This is exactly what is in the file that is simply called ".htaccess":
    Code:
    Redirect /flightnovel.pdf http://svu.doriennesmith.com/flight/flightnovel1.pdf
    The file has been placed in the directory: http://svu.doriennesmith.com/flight/, but the original file does not redirect to the new file. What could I be doing wrong?

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    Have you tried:
    Code:
    Redirect /flightnovel.pdf /flightnovel1.pdf
    And does your Hosting service allow for .htaccess?

  • #3
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    Tried it, but still having problems, and my hosting package allows for it...

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Try
    Code:
    Redirect flightnovel.pdf http://svu.doriennesmith.com/flight/flightnovel1.pdf
    or
    Code:
    Redirect http://yourwebsite.com/flightnovel.pdf http://svu.doriennesmith.com/flight/flightnovel1.pdf
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    It still does not redirect. Here is the last one I tried:
    Code:
    Redirect http://svu.doriennesmith.com/flight/flightnovel.pdf http://svu.doriennesmith.com/flight/flightnovel1.pdf

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    No need for that last one, if it was working you would get a Firefox is not redirecting properly message. I would contact your host and be sure you are allowed to use htaccess. Also for an htaccess to work it needs to go into your public_html folder or your web documents folder which ever that may be.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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