$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>htaccess - How to change old permalink?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

htaccess - How to change old permalink?

matteradmin9PV0评论

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

.php/2019/01/08/technological-innovation-for-agriculture-sector-in-india/

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

/

also, want to remove index.php.

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

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

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

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

https://example/sample-post/

also, want to remove index.php.

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

Share Improve this question edited Jan 11, 2019 at 23:10 MrWhite 3,8911 gold badge20 silver badges23 bronze badges asked Jan 11, 2019 at 20:00 RohanRohan 1113 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

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.

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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far