How to change wordpress permalinks without give 404 error? - wordpress

i want to change my wp post permalinks from:
/post/%post_id%.php
to:
/%post_id%/%postname%
But it makes 404 errors from last post links. How can i fix it?
i used this Plugins:
Dean's permalink migration,
Simple 301 Redirect And
Change Permalink Helper
But They do not work or work incompletely. please help me.
Thanks

Related

changing permalink causes 404 on visiting blog in wordpress

I am changing permalink structure from
http://www.example.com/blog/index.php/2017/04/17/reasons-high-anxious-levels/
to
http://www.example.com/reasons-high-anxious-levels/
by going in settings>permalinks>change URL structure.
And on visiting to blog then it redirects me to 404 error page.
Please suggest how to achieve this
You can use SEO Redirection for the url's you have changed. You can use the plugin
https://wordpress.org/plugins/seo-redirection/

WordPress permalink structure change re-direct htaccess

I currently have a website using the permalink structure:
http://xxx.xxx/%postname%/
I want to change this to:
http://xxx.xxx/xxx/%postname%/
So basically giving the default post type a slug rewrite like you can with CPT.
However, as we all know all the indexed pages will 404 so I need to write some HTACCESS to but not sure what I need.
If I use the following then all pages are re-directed too:
RedirectMatch 301 ^/([^/]+)/$ http://xxx.xxx/xxx/$1
Where as I just want the default post type re-directed.
Thanks
This cannot be done, you need to completed 301 redirects for each post and tag.
Have blogged about my process here: http://www.chewx.co.uk/2015/wordpress-permalink-update-from-postname/
If anyone can think of a better way, let me know.

My 404 page in wordpress not show

my 404 page in my site in Wordpress not show when user type a incorrect address and show a page with widget and other thing.
i use a custom permalink %postname% before this change 404 work correctly but after change my permalink not work.
can any one help me wordpress doc cant help me.
sorry for my bad english
I change my permalink to %postname%.html and 404 page work correct

Wordpress custom post type network error

I've created a custom post type for my wordpress theme named "Questions". But if i go to url:
www.mysite.com/questions it wont work and returning:
NetworkError: 404 Not Found
However, the url of specific product: www.mysite.com/questions/my-question works fine.
What is a problem?
will be a .htaccess problem or something wrong with mod_rewrite.
maybe this can help you: http://codex.wordpress.org/Using_Permalinks
If your htaccess is ok; can you post the content of your htaccess here?

Wordpress: How to redirect old links after changing permalink structure?

I have changed my permalink structure in WordPress.
Can a plugin help me redirect old links to the new?
Thanks!
Redirection works for this, however for it to automatically detect the permalink changes, you'll probably have to revert the permalinks, install Redirection, and then change to the desired permalinks again.
If this isn't adequate, you can add them manually, and it has tools to help you find 404's that you were not aware of.

Resources