| | #1 |
| Active Warrior Join Date: 2012 Location: India
Posts: 45
Thanks: 36
Thanked 5 Times in 5 Posts
|
I have changed my permalink structure from /%postname%/ to /%postname.html. Now I need a htaccess code to redirect old structure post to new structure one. Found a code but it says you have to write for each and every page, more than hundred pages are there.Is there any code to redirect all posts with old structure to new one ? 301 |
| | |
| |
| | #2 |
| Amazon FBA Guru War Room Member Join Date: 2012 Location: The Office
Posts: 794
Thanks: 217
Thanked 144 Times in 130 Posts
|
There is a redirect plugin that can do as it is hard for ranking SERP. There is no such thing that we can make all the links once at a time.
|
| |
| | #3 |
| SpiderCon War Room Member Join Date: 2012 Location: Earth
Posts: 194
Thanks: 30
Thanked 17 Times in 16 Posts
| |
| |
| | #4 |
| Warrior Member Join Date: 2015 Location: USA
Posts: 10
Thanks: 19
Thanked 0 Times in 0 Posts
|
One of the first things to do when you login to your newly installed WordPress dashboard is to adjust the permalink settings to set the url structure for the site. You can do this by going to the Settings → Permalinks panel. The default permalink setting for WordPress create ugly urls p=123 using the postid number. Changing to one of the date structures isn’t much better. The best option from an SEO perspective is to choose postname to put the title of your post in the url or, what some do, select Custom Structure and put /%category%/%postname%/ to add the category as well as the post title in the url. Then you want to use keywords for category names. |
| | |
| |
|
| Bookmarks |
| Tags |
| change, code, htaccess, permalink, redirection |
| |