WordPress.org

Forums

Permalink Structure Not Working for Brand New Install (5 posts)

  1. digiman999
    Member
    Posted 5 years ago #

    I have just done (another) fresh install of WordPress, trying to get the permalinks working before adding content.

    wonderworldaudio dot com

    1) Once installed, I immediately changed permalink structure to /%postname%/
    2) I then made a new post category, and a new post assiged to it, called Test post.
    3) On clicking Test post (user end), you get a 404 not found, and has the correct url i.e. /postname
    4) If you put the permalink structure back to default, the post then loads with the url /?=4

    This is what I can't figure out, and I can't see anything anywhere that indicates this should be a problem at this stage. There's no plugins installed, just a straight WP install with the Digital Farm theme, but I've activated the default one for the time being.

    Any thoughts apppreciated.
    Regards

  2. Shane G.
    Member
    Posted 5 years ago #

    Hi,

    Reset your permalink from wordpress admin area and add this code in htaccess of your blog:

    # 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

    Now, check with your blog posts.

    Thanks,

    Shane G.

  3. MichaelH
    Member
    Posted 5 years ago #

    Might need to work your way through the Permalinks article.

    Note using %postname% is not a recommended approach for performance reasons.

    Other material:
    http://dougal.gunters.org/blog/2009/02/04/efficient-wordpress-permalinks

  4. Tache Madalin
    Member
    Posted 5 years ago #

    My best guess is that .htaccess wasn't modified and you might need to create it manually.

  5. digiman999
    Member
    Posted 5 years ago #

    Resolved. Here's what I did for those that don't know, and many thanks to those that do!

    Changed Apache Config (via webmin)
    Changed
    FollowSymLinks to FollowSymLinks <Location |http://www.wonderworldaudio.com> ... </Location>
    Changed
    AllowOverride None to AllowOverride All

    Created .htaccess.txt, with
    # 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

    uploaded to wordpress root, renamed to .htaccess, set permissions to 1646 (WR by Others)

Topic Closed

This topic has been closed to new replies.

About this Topic