Forums

[resolved] Error 403 - only on blog posts (10 posts)

  1. you_know_zo
    Member
    Posted 2 years ago #

    Hi :)

    OK - I am doing some work on the local copy of my website... and I decided to reinstate the blog function and write some articles... On my posts page, they are all listing fine, but when I try to open them, I get an Error 403 - can anyone tell me why that might be?

    I saw some similar posts in the forum, but everyone else lost access to wp-admin and their other pages too, but for me, it's just the pages relating to the blog, e.g. categories and the posts themselves.

    I've never used posts on my site before, only pages, so I don't know if it's ever worked... but I did upgrade to 2.8.6 just this morning.

    Any ideas? Thanks in advance!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Are you using a custom permalink structure? If so, have you tried resetting the permalinks back to the default setting?

  3. s_ha_dum (was apljdi)
    Member
    Posted 2 years ago #

    '403' is a 'file forbidden'. What is in your .htaccess?

  4. you_know_zo
    Member
    Posted 2 years ago #

    Hi guys, thanks so much for replying.

    Esmi - thank you - you got it - I changed the permalinks back... I was using:

    /http:/localhost/wordpress/%postname% - which worked fine for everything except my blog entries.

    Do you have any idea why that is, and/or how I can get round it?

    apljdi - I tried changing my .htaccess but it didn't do anything...

    Thanks guys!

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    %postname% isn't a good choice of permalink and I've seen it cause problems elsewhere. Try including a numeric in your permalink structure - such as /%post_id%/%postname%

  6. you_know_zo
    Member
    Posted 2 years ago #

    Yeah I knew it caused problems, but when I was using just pages, it worked fine...

    I tried what you suggested and that didn't work either unfortunately. I've tried a few more, the most recent being

    /%year%/%monthnum%/%day%/%postname%

    but I'm still getting the error... any more ideas?

    Thanks so much for your help :)

  7. you_know_zo
    Member
    Posted 2 years ago #

    OK... using this:

    /index.php/%year%/%monthnum%/%day%/%postname%/

    works... but then all my page names are localhost/wordpress/index.php/pagename - which isn't ideal... there must be a way around this!!

  8. you_know_zo
    Member
    Posted 2 years ago #

    Haha!! Fixed!!

    http://localhost/wordpress/archives/123

    is the winner... this still gives my page names in the URL (so all my external links won't be broken!!) and the blog posts are displaying.

    Thank you for your help... I needed that push in the 'permalinks' direction ;)

  9. s_ha_dum (was apljdi)
    Member
    Posted 2 years ago #

    What do you mean by 'your external links won't be broken'? If someone linked to http:/localhost/wordpress/123, and you now have http://localhost/wordpress/archives/123 the link is broken even though the post name still shows up in the URL.

  10. you_know_zo
    Member
    Posted 2 years ago #

    Ah yes - but I never used posts on my site before... I was worried about someone linking to one of my pages and the link to that changing... I didn't realise that even without 'postname' in the permalinks, my page that is called 'skills' would still be localhost/wordpress/skills - so crisis averted!

    Thanks for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic