.htaccess - wordpress

Discussion in 'WordPress' started by nut legend, Jan 1, 2009.

  1. #1
    Hey,

    I don't have .htaccess file for wordpress, can someone please give me a download file for their .htaccess file which works with all wordpress as I don't have one.

    Regards,

    nut legend
     
    nut legend, Jan 1, 2009 IP
  2. dmi

    dmi Well-Known Member

    Messages:
    2,705
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Create .htaccess and fill it with the following code:

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /yourdomain.com/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    Code (markup):
     
    dmi, Jan 1, 2009 IP
  3. muppethunter

    muppethunter Guest

    Messages:
    123
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can create a .htaccess file with notepad. You also need to make sure your permalink settings within wordpress admin are set up the way you want them.

    I use the custom structure then /%category%/%postname%/
     
    muppethunter, Jan 1, 2009 IP
  4. metrox

    metrox Active Member

    Messages:
    88
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #4
    Wordpress should create this file automatically if you set write permissions on your root folder. Don’t forget to change back the permissions after the file is created.
     
    metrox, Jan 1, 2009 IP
  5. amild

    amild Banned

    Messages:
    179
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    check the show hidden file when you open the file manager
     
    amild, Jan 1, 2009 IP