Hi @willral
You have to create redirects.
You can use this popular free WordPress redirection plugin: https://ww.wp.xz.cn/plugins/redirection/ 🙂
i have already tried redirects,
permalink refreshes and an update to the ht access file
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.
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
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.
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 5 years, 11 months ago by
willral.
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
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
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/
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 5 years, 11 months ago by
willral.
-
This reply was modified 5 years, 11 months ago by
willral.
Hi @willral
Use this plugin: https://ww.wp.xz.cn/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.