I deleted my htaccess file by mistake...need help

Discussion in 'Site & Server Administration' started by jasonb25, Jul 18, 2008.

  1. #1
    Is there a way of gaining the original settings for the htaccess file ?

    I deleted it by mistake and now it is effecting my blog posts. There was nothing special in the file, can anyone tell me the basic settings of the htaccess file?

    It had a rewrite , something to do with my /blog and had one line at the top. This is all i can remember.

    Jason
     
    jasonb25, Jul 18, 2008 IP
  2. deluxdon

    deluxdon Catch Me If You Can...!!!™ Staff

    Messages:
    25,481
    Likes Received:
    1,943
    Best Answers:
    32
    Trophy Points:
    480
    #2
    Maybe this one help you.

    Try adding below given and see what happen.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
    DON.
     
    deluxdon, Jul 18, 2008 IP
  3. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #3
    If you were using WordPress then you can check out in your wp admin panel, there is an option to manually copy stuff that needs to go in your .htaccess . I believe that's in the Options and then Permalinks section at the bottom.
     
    pr0t0n, Jul 18, 2008 IP