1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to setup .htaccess redirect

Discussion in 'Black Hat SEO' started by vivalafeva, Oct 3, 2008.

  1. vivalafeva

    vivalafeva Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2008
    Messages:
    1,481
    Likes Received:
    719
    i am trying to set up a .htaccess redirect on an image, but now I am just getting a 500 internal server error can anyone help?
     
  2. BlackSmack

    BlackSmack Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    149
    Likes Received:
    47
    Occupation:
    Whale Tail Watcher
    Location:
    Uranus
    Make sure you're uploading it as ascii and/or editing it in ascii mode
     
  3. vivalafeva

    vivalafeva Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2008
    Messages:
    1,481
    Likes Received:
    719
    sorry im not quite sure what you mean by ascii?
     
  4. ptsniper

    ptsniper Newbie

    Joined:
    Mar 8, 2008
    Messages:
    31
    Likes Received:
    13
    he means the format you upload the file in your ftp program;

    ie in filezilla

    go to;

    Edit; Settings; Transfers; File Types.
     
  5. BlackSmack

    BlackSmack Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    149
    Likes Received:
    47
    Occupation:
    Whale Tail Watcher
    Location:
    Uranus
    I don't know what FTP program you're using but there's 2 "Transfer Modes" Ascii and Binary which you can set in any FTP program. Usually there's an "Auto" setting but not all of them have it set right for a .htaccess file.

    Check your options in your FTP program, unless you're using a web interface which then your problem is the permissions on the .htaccess are not set to 755/read OR you have a an error in the htaccess file.

    You are probably now extremely confused. If yes then paste your HTACCESS code into a message so I can see if it's formated properly.
     
  6. rachusrs

    rachusrs BANNED BANNED

    Joined:
    Jun 23, 2007
    Messages:
    54
    Likes Received:
    27
    ascii mode means text mode , u have ascii(text) mode, binary mode,
    auto mode. select ascii mode because it does not introduce any
    unwanted charecters like puncuations , line breaks ... etc.
     
  7. bhnoobz

    bhnoobz BANNED BANNED

    Joined:
    Jul 26, 2008
    Messages:
    395
    Likes Received:
    107
    check your apache error log, it will tell you why you receive 500 error.. probably bad code in your .htaccess..
     
  8. vivalafeva

    vivalafeva Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2008
    Messages:
    1,481
    Likes Received:
    719
    i am using cyber duck, does it matter if it is a word document, I use textedit because im on a mac
     
  9. BlackSmack

    BlackSmack Junior Member

    Joined:
    Jul 13, 2008
    Messages:
    149
    Likes Received:
    47
    Occupation:
    Whale Tail Watcher
    Location:
    Uranus
    Yes it matters, open notepad, paste your code in then reupload