By Rohan


2019-01-11 20:00:46 8 Comments

My old permalink structure is /index.php/%year%/%monthnum%/%day%/%postname%/. For example:

https://example.com/index.php/2019/01/08/technological-innovation-for-agriculture-sector-in-india/

but I want to change to "Post name". For example:

https://example.com/sample-post/

also, want to remove index.php.

When I change the permalink my old post or pages are not working

2 comments

@David Mansaray 2019-01-12 11:43:41

The old links have stopped working because they no longer exist.

1) If the site is live you should change the permalink structure back to the way it was because you run the risk of having the pages removed from the Google index.

2) Before changing the permalink structure it's important to set up a redirect to the new location.

Redirection is a great plugin to help you with this.

@Niklas 2019-01-12 01:18:07

Well you have several options, but you definitely need to redirect the url.

You can either achieve the redirection via a Wordpress plugin or through your .htaccess file.

If you would like to use a plugin, I would recommend "Redirection" by John Godley.

It is easy to use. Just type the url you want to redirect from & to.

@Rohan 2019-01-12 05:09:15

If I would like to change using htaccess so do i have to change permalink setting ?

@Stefano Tombolini 2019-01-12 08:46:21

@TarunSharma No, leave the new permalink structure. Take a look at the plugin suggested by Niklas, by default it uses WordPress itself for redirections but it can export to .htaccess too: wordpress.org/plugins/redirection

Related Questions

Sponsored Content

3 Answered Questions

[SOLVED] Removing leading zeros from custom permalink structure

  • 2012-09-18 19:19:12
  • user20567
  • 724 View
  • 5 Score
  • 3 Answer
  • Tags:   permalinks

0 Answered Questions

1 Answered Questions

[SOLVED] Do changes to Wordpress permalink custom structure affect old urls?

  • 2015-09-04 19:36:52
  • Sajad
  • 162 View
  • 1 Score
  • 1 Answer
  • Tags:   php permalinks

2 Answered Questions

0 Answered Questions

4 Answered Questions

1 Answered Questions

[SOLVED] old permalinks not found

1 Answered Questions

wordpress permalinks tweeks

2 Answered Questions

[SOLVED] Non Latin page permalink problem

1 Answered Questions

[SOLVED] IIS7.5 URL rewrite pboblem on index page

Sponsored Content