• willral

    (@willral)


    i have tried to change my permalinks to just postname instead of plain however it seems to have made loads of 404 errors how can i fix this

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Animesh Gaurav

    (@bizanimesh)

    Hi @willral

    You have to create redirects.

    You can use this popular free WordPress redirection plugin: https://wordpress.org/plugins/redirection/ 🙂

    Thread Starter willral

    (@willral)

    i have already tried redirects,
    permalink refreshes and an update to the ht access file

    Animesh Gaurav

    (@bizanimesh)

    Can you please share the screenshot of a redirect that you have made in the backend?

    Plus, also send me a previous link and a link on which you have made redirects.

    Just send me one example.

    Thread Starter willral

    (@willral)

    the 404 errors i have mentioned are not from old links it happens when i set the permalinks to post name instead of plain the only way have worked around this is by putting index.php/ before in the custom permalink settings however i do not want this as it is not very plugin friendly

    working-picture-with-bad-url.png

    Error-with-Url-i-want.png

    Animesh Gaurav

    (@bizanimesh)

    Hi @willral

    Why you have index.php in the URL? How did you put that?

    I just want to generate the same issue to see if it is also causing the problem at my side.

    Thread Starter willral

    (@willral)

    permalinks>custom structure>enter
    i am using this instead of plain and i have to use this instead of post name (as i get the 404 errors). I just updated my version of php to 7.4 as of over problems

    • This reply was modified 6 years ago by willral.
    Animesh Gaurav

    (@bizanimesh)

    Hi @willral

    You want to redirect this format /index.php/post-title/ to /?p=123. Right?

    I have tested.

    I have first created a post with permalink:

    https://website-name.com/index.php/post-title/

    Then I change permalink structure to (plain):

    http://website-name.com/?p=123

    Yes, I also got 404 error initially, but after creating redirection, https://website-name.com/index.php/post-title/ is perfectly redirecting to http://website-name.com/?p=123

    Thread Starter willral

    (@willral)

    no i want to change https://website-name.com/index.php/post-title/ to
    https://website-name.com/post-title/ but i can’t do this as when i change it i get 404 errors

    Animesh Gaurav

    (@bizanimesh)

    Hi @willral

    In Settings > Permalinks, you only need to select Post name for doing that.

    As I know and again tested, WordPress automatically 301 redirects all your posts.

    Please read this article: https://www.wpexplorer.com/change-permalinks-wordpress/

    Thread Starter willral

    (@willral)

    when i have Post name selected if i try to go to https://stokepogesairscouts.co.uk/any-page/ a 404 error will happen (i have saved changes)

    • This reply was modified 6 years ago by willral.
    • This reply was modified 6 years ago by willral.
    Animesh Gaurav

    (@bizanimesh)

    Hi @willral

    Use this plugin: https://wordpress.org/plugins/redirection/ and 301 redirect (Moved Permanently) all your https://stokepogesairscouts.co.uk/index.php/any-page/ to https://stokepogesairscouts.co.uk/any-page/

    I have again tested and the plugin is working very well.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘404 error when changing permalink options’ is closed to new replies.