Title: 404 error when changing permalink options
Last modified: May 31, 2020

---

# 404 error when changing permalink options

 *  [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/)
 * i have tried to change my permalinks to just postname instead of plain however
   it seems to have made loads of 404 errors how can i fix this
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F404-error-when-changing-permalink-options%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12917661)
 * Hi [@willral](https://wordpress.org/support/users/willral/)
 * You have to create redirects.
 * You can use this popular free WordPress redirection plugin: [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)
   🙂
 *  Thread Starter [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12918491)
 * i have already tried redirects,
    permalink refreshes and an update to the ht 
   access file
 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12918596)
 * Can you please share the screenshot of a redirect that you have made in the backend?
 * Plus, also send me a previous link and a link on which you have made redirects.
 * Just send me one example.
 *  Thread Starter [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12918696)
 * the 404 errors i have mentioned are not from old links it happens when i set 
   the permalinks to post name instead of plain the only way have worked around 
   this is by putting index.php/ before in the custom permalink settings however
   i do not want this as it is not very plugin friendly
 * [working-picture-with-bad-url.png](http://www.stokepogesairscouts.co.uk/wp-content/uploads/2020/05/working-picture-with-bad-url.png)
 * [Error-with-Url-i-want.png](http://www.stokepogesairscouts.co.uk/wp-content/uploads/2020/05/Error-with-Url-i-want.png)
 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12920835)
 * Hi [@willral](https://wordpress.org/support/users/willral/)
 * Why you have `index.php` in the URL? How did you put that?
 * I just want to generate the same issue to see if it is also causing the problem
   at my side.
 *  Thread Starter [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12921447)
 * [permalinks>custom structure>enter](http://www.stokepogesairscouts.co.uk/wp-content/uploads/2020/06/Permalinks-custom_structure-enter-2.png)
   
   i am using this instead of plain and i have to use this instead of post name (
   as i get the 404 errors). I just updated my version of php to 7.4 as of over 
   problems
    -  This reply was modified 5 years, 12 months ago by [willral](https://wordpress.org/support/users/willral/).
 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12924554)
 * Hi [@willral](https://wordpress.org/support/users/willral/)
 * You want to redirect this format `/index.php/post-title/` to `/?p=123`. Right?
 * I have tested.
 * I have first created a post with permalink:
 * `https://website-name.com/index.php/post-title/`
 * Then I change permalink structure to (plain):
 * `http://website-name.com/?p=123`
 * Yes, I also got 404 error initially, but after creating redirection, `https://
   website-name.com/index.php/post-title/` is perfectly redirecting to `http://website-
   name.com/?p=123`
 *  Thread Starter [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12924846)
 * no i want to change `https://website-name.com/index.php/post-title/` to
    `https://
   website-name.com/post-title/` but i can’t do this as when i change it i get 404
   errors
 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12924981)
 * Hi [@willral](https://wordpress.org/support/users/willral/)
 * In **Settings > Permalinks**, you only need to select **Post name** for doing
   that.
 * As I know and again tested, WordPress automatically 301 redirects all your posts.
 * Please read this article: [https://www.wpexplorer.com/change-permalinks-wordpress/](https://www.wpexplorer.com/change-permalinks-wordpress/)
 *  Thread Starter [willral](https://wordpress.org/support/users/willral/)
 * (@willral)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12925297)
 * when i have **Post name** selected if i try to go to `https://stokepogesairscouts.
   co.uk/any-page/` a 404 error will happen (i have saved changes)
    -  This reply was modified 5 years, 12 months ago by [willral](https://wordpress.org/support/users/willral/).
    -  This reply was modified 5 years, 12 months ago by [willral](https://wordpress.org/support/users/willral/).
 *  [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12928183)
 * Hi [@willral](https://wordpress.org/support/users/willral/)
 * Use this plugin: [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)
   and 301 redirect (Moved Permanently) all your `https://stokepogesairscouts.co.
   uk/index.php/any-page/` to `https://stokepogesairscouts.co.uk/any-page/`
 * I have again tested and the plugin is working very well.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘404 error when changing permalink options’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/404-error-when-changing-permalink-options/#post-12928183)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
