• digiman999

    (@digiman999)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Shane G.

    (@shane-g-1)

    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.

    MichaelH

    (@michaelh)

    Might need to work your way through the Permalinks article.

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

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

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

    Thread Starter digiman999

    (@digiman999)

    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 |https://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)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalink Structure Not Working for Brand New Install’ is closed to new replies.