Permalink structure problem

Discussion in 'WordPress' started by lastname, Aug 10, 2008.

  1. #1
    i got a problem when trying to change my permalink to custom /%postname/, it said i should update my htaccess, and when i get it back to default they doesn't work.so i got 404 bad request now..
     
    lastname, Aug 10, 2008 IP
  2. lastname

    lastname Peon

    Messages:
    510
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    and how to update htaccess?

    here's my htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
     
    lastname, Aug 10, 2008 IP
  3. mupha

    mupha Peon

    Messages:
    115
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    mupha, Aug 10, 2008 IP
  4. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #4
    godsofchaos, Aug 10, 2008 IP
  5. JSellnau_TSCC

    JSellnau_TSCC Peon

    Messages:
    166
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The main thing when changing your permalink structure you need to make sure WordPress can write to your .htaccess file.
     
    JSellnau_TSCC, Aug 10, 2008 IP
  6. BANAGO

    BANAGO Active Member

    Messages:
    456
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    BANAGO, Aug 10, 2008 IP
  7. lastname

    lastname Peon

    Messages:
    510
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    lastname, Aug 11, 2008 IP
  8. godsofchaos

    godsofchaos Peon

    Messages:
    2,595
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Open up your ftp browser and go to the public_html folder. There you'll see a file called htaccess. Download it. Make a copy of the original file. Then open up the copied htaccess with notepad. There should be something alienlike written there, below that paste the code you have given us here which was generated by wordpress after updating your permalinks. After pasting it save the htaccess file and upload it in the public_html folder overwriting the existing htaccess file.
    Check your blog and it will work. Cheers.
     
    godsofchaos, Aug 16, 2008 IP
  9. lastname

    lastname Peon

    Messages:
    510
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    case closed, i just upload new .htaccess fle into my publichtml file and it works..tks all!
     
    lastname, Aug 16, 2008 IP