Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Need htaccess redirection code for permalink change (https://www.warriorforum.com/programming/1059145-need-htaccess-redirection-code-permalink-change.html)

rocky1223 24th March 2015 12:52 PM

Need htaccess redirection code for permalink change
 
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,:smilies_confused: more than hundred pages are there.

Is there any code to redirect all posts with old structure to new one ? 301

TeKn1qu3z 24th March 2015 01:02 PM

Re: Need htaccess redirection code for permalink change
 
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.

hassan007 24th March 2015 02:35 PM

Re: Need htaccess redirection code for permalink change
 
Here is the WP Plugin that will do this job...

https://wordpress.org/plugins/esb-url-extension/

Curtnielson 4th April 2015 12:43 PM

Re: Need htaccess redirection code for permalink change
 
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.


All times are GMT -6. The time now is 08:09 PM.