Support » Fixing WordPress » permalink help needed

  • Hi,

    I’ve installed a wordpress blog for a friend, but I really don’t know enough on how to change the permalink to what I want. I just want it to go /home/%postname%/ but instead it keeps going /home/index.php/%postname%/.

    I’ve read the Codex pages on it but I simply don’t understand how to do these rewrites to get rid of it despite trying. I’ve searched numerous sites but can’t find one that gives me a ready made example on how to do it.

    I need help on what I’m supposed to put in the .htaccess file because, as I said, it’s just beyond me.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Under “Settings > Permalinks”, select the radio button for “Custom Structure”, then insert this code:

    /%category%/%postname%/

    Then click “Save Changes”. That should then generate a warning that an .htaccess file needs to be generated. If your installation is working like mine, it’ll even generate the code at the bottom of the page to put in to the .htaccess . But if not, here is what I have:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Save the above code to an .htaccess file and then upload that to the root directory where your Word Press files are located. That should do the trick. making for very nice URLs without the “index.php” name in the code.

    Maybe this helps,
    Brent

    Hi,

    Set your deisred permalink from wordpress admin area and add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permalink help needed’ is closed to new replies.