Title: Error 404 after changing permalink
Last modified: April 5, 2017

---

# Error 404 after changing permalink

 *  Resolved [jostill](https://wordpress.org/support/users/jostill/)
 * (@jostill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/)
 * Hi
 * I’m having a problem since changing my permalinks from default to postname. I’m
   getting 404 errors on pages but only the ones that are within the submenu called
   menus, all the other pages are working fine.
 * I tried using yoast facility to generate code to put in HTaccess but it just 
   says WordPress will redirect for you, so it thinks I shouldn’t need to do anything.
   What I’m experiencing is when I view the site: [http://www.5thview.com/menus/nibbles/](http://www.5thview.com/menus/nibbles/)
 * Not sure why it’s just those pages that are affected other than they are in a
   submenu. I’ve no idea how to fix this.
 * I should add that if I switch back to default permalinks it works fine again…
 * Any help would be greatly appreciated.
    -  This topic was modified 9 years, 2 months ago by [jostill](https://wordpress.org/support/users/jostill/).

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

 *  [prasadneeraj](https://wordpress.org/support/users/prasadneeraj/)
 * (@prasadneeraj)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-8995451)
 * Hi [@jostill](https://wordpress.org/support/users/jostill/),
 * It seems there is some extra rule is defined under the .htaccess file.
 * You can delete the .htaccess file and reset the permalink option again.
 * Or you can also post the code, I will check and advise.
 * Let me know if you have any further query.
 * Thanks
 *  [Venus10](https://wordpress.org/support/users/venus10/)
 * (@venus10)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-8995752)
 * Hi all
    same problem with my website. I changed back to permalink structure before
   and this works fine. I deleted .htaccess file and reset the permalink option 
   once again. This results in 404 for all pages except homepage itself. So no clue
   why this happen. Changed again back to old permalink structure – it works
 *  Thread Starter [jostill](https://wordpress.org/support/users/jostill/)
 * (@jostill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-8996224)
 * # Use PHP5.6 as default
    AddHandler application/x-httpd-phpbeta .php
 * # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE
   text/css text/x-component application/x-javascript application/javascript text/
   javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd
   text/xsl text/xml image/bmp application/java application/msword application/vnd.
   ms-fontobject application/x-msdownload image/x-icon image/webp application/json
   application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/
   vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.
   opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.
   oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/
   vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/
   ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-
   shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype
   audio/wav application/vnd.ms-write application/font-woff application/font-woff2
   application/vnd.ms-excel <IfModule mod_mime.c> # DEFLATE by extension AddOutputFilter
   DEFLATE js css htm html xml </IfModule> </IfModule> <FilesMatch “\.(html|htm|
   rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$”> <IfModule
   mod_headers.c> Header append Vary User-Agent env=!dont-vary </IfModule> </FilesMatch
   > <FilesMatch “\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb
   |odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc
   |_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|
   WEBP|JSON|MDB|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX
   |SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$”
   > <IfModule mod_headers.c> Header unset Last-Modified </IfModule> </FilesMatch
   > # END W3TC Browser Cache # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * # END WordPress
 * # TURNED FCGI ON TO REDUCE RESOURCE USAGE
    # Changed PHP handler from fcgid-script
   to application/x-httpd-php56 on Wed Oct 19 09:39:14 MDT 2016. # Changed PHP handler
   from application/x-httpd-php56 to application/x-httpd-phpbeta on Wed Oct 19 09:
   40:52 MDT 2016. AddHandler application/x-httpd-phpbeta .php
 *  Thread Starter [jostill](https://wordpress.org/support/users/jostill/)
 * (@jostill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-8996256)
 * Hi
 * Thanks for your reply.
 * I’ve posted the code because I changed the name of the HTaccess file and it then
   stopped the site working altogether. Presumably you meant replace the file with
   a new version (it needs one to keep functioning right?) Sorry I’m not too sure
   on HTaccess files…
 * When browsing through the files via ftp I can see there are some other files .
   htaccess.bak.1450224831 underneath the original – presumably they are versions
   from backups I have made?
    -  This reply was modified 9 years, 2 months ago by [jostill](https://wordpress.org/support/users/jostill/).
 *  Thread Starter [jostill](https://wordpress.org/support/users/jostill/)
 * (@jostill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-9004858)
 * Hi,
 * I’m bumping this because it’s still not resolved… Thanks, Jo
 *  Thread Starter [jostill](https://wordpress.org/support/users/jostill/)
 * (@jostill)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-9017956)
 * Found a fix for my issue, which might be of use to you. When I looked at the 
   links for the menu/sub item pages the link for all the menu items had been changed
   to menus rather than menu during the permalink update? Manually fixed all these
   and now it works! Woop, woop!

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

The topic ‘Error 404 after changing permalink’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [jostill](https://wordpress.org/support/users/jostill/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/error-404-after-changing-permalink/#post-9017956)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
