• Resolved you_know_zo

    (@you_know_zo)


    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!

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi

    (@esmi)

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

    ‘403’ is a ‘file forbidden’. What is in your .htaccess?

    Thread Starter you_know_zo

    (@you_know_zo)

    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!

    esmi

    (@esmi)

    %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%

    Thread Starter you_know_zo

    (@you_know_zo)

    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 ??

    Thread Starter you_know_zo

    (@you_know_zo)

    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!!

    Thread Starter you_know_zo

    (@you_know_zo)

    Haha!! Fixed!!

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

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

    Thread Starter you_know_zo

    (@you_know_zo)

    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 ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error 403 – only on blog posts’ is closed to new replies.