.htaccess help.

Discussion in 'Site & Server Administration' started by Jerlene.net, Jul 3, 2007.

  1. #1
    WordPress asked me to put the following into my .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    PHP:
    I have no idea how to create one, what belongs in one, etc. Do I just put that code in and that's it?
     
    Jerlene.net, Jul 3, 2007 IP
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    Don't you see this file in the root directory?
    Just add it to that file.
     
    Richie_Ni, Jul 3, 2007 IP
    deluxdon likes this.
  3. Slacker

    Slacker Guest

    Messages:
    383
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    put it in a text file, and save it as ".htaccess" with the quotes

    then upload it to your server :)

    - Slacker
     
    Slacker, Jul 3, 2007 IP
  4. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #4
    I'm not a total idiot.

    There is no .htaccess file in any directory and I already tried putting it in a text file and uploading it but it always says "Critical Error".
     
    Jerlene.net, Jul 3, 2007 IP
  5. Slacker

    Slacker Guest

    Messages:
    383
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it can't be in a text file.

    You have to save the text file as ".htaccess" with the quotes, which will make it an official .htaccess file
     
    Slacker, Jul 3, 2007 IP
  6. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #6
    If you have installed wordpress,I believe the .htaccess file is there.
     
    Richie_Ni, Jul 3, 2007 IP
  7. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #7
    I know, I did. Critical transfer error.

    Trust me, it's not.
     
    Jerlene.net, Jul 3, 2007 IP
  8. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #8
    Upload it as htaccess.txt or htaccess.html and then see if it'll let you rename it to .htaccess .
     
    Nintendo, Jul 3, 2007 IP
  9. jmafonseca

    jmafonseca Peon

    Messages:
    195
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you have shell access just

    cd /WORDPRESSROOTDIR/
    vi .htaccess
    press i to start inserting
    select, copy text here
    press right mouse button to paste into vi
    press ESC key to go back to command mode
    type in
    :wq!

    and bob's your uncle(hopefully)
     
    jmafonseca, Jul 3, 2007 IP
  10. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #10
    It uploaded but still said "Critical transfer error". The file is there in the directory but it's not accessible and the site hasn't been updated or anything, like nothing happened.
     
    Jerlene.net, Jul 4, 2007 IP
  11. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #11
    Where did you see the message?
     
    Richie_Ni, Jul 4, 2007 IP
  12. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Your hosting has something wrong with mod_rewrite module.
     
    bouncer69, Jul 4, 2007 IP
  13. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #13
    I'm using FileZilla. Here's a screenshot:

    [​IMG]
     
    Jerlene.net, Jul 4, 2007 IP
  14. madarcu

    madarcu Peon

    Messages:
    48
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    So create a new textfile on the desktop say: ht.txt, open with notepad and paste the code. after that open filezilla and right click on the file ht.txt, press upload. On the right side press right click on the ht.txt file and press rename. rename the file to .htaccess. Now press again right click and choose File attributes. This has to be RW-,R--.R--. I think now should work, if not there is a problem with your host.
     
    madarcu, Jul 4, 2007 IP
  15. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #15
    .htaccess.html ?
    save it as htaccess.txt and rename it then.give it a try.
     
    Richie_Ni, Jul 4, 2007 IP
  16. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #16
    Not .htaccess.html!!! Only htaccess.html!!! And contact your web host. It's smoking crack.
     
    Nintendo, Jul 4, 2007 IP
  17. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #17
    I uploaded it but it won't let me rename it. Also, I contacted my host but they're definitely no help. I asked about this days ago but still no response.
     
    Jerlene.net, Jul 5, 2007 IP
  18. bouncer69

    bouncer69 Peon

    Messages:
    978
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Send me your details to have a look and find out the problem if you want. ;)
     
    bouncer69, Jul 5, 2007 IP
  19. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    385
    #19
    ha Thanks but no thanks.;)
     
    Jerlene.net, Jul 5, 2007 IP
  20. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #20
    Time to dump your web host!!!!!
     
    Nintendo, Jul 5, 2007 IP