Title: Permalink problem: 404 error
Last modified: August 31, 2016

---

# Permalink problem: 404 error

 *  [chesthairtoupee](https://wordpress.org/support/users/chesthairtoupee/)
 * (@chesthairtoupee)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-404-error-3/)
 * Hello,
    when I go to settings -> permalinks and choose the “plain” option, then
   all links work as expected, but when I choose something else the pages are not
   displayed. In the index.php of the theme I added this line `<?php if ( !get_option('
   permalink_structure') ) { echo 'permalinks not enabled'; } ?>`, but it didn’t
   produce any output.`LoadModule rewrite_module modules/mod_rewrite.so` is also
   activated and WordPress generates a new .htaccess file when I delete the old 
   one. Nevertheless, I always receive a 404 error on all web pages, only the homepage
   on localhost/wordpress can be loaded. According to PHP info, the mod-rewrite 
   module is loaded. How can I fix this error? Thanks for any help.

Viewing 1 replies (of 1 total)

 *  [Chakson](https://wordpress.org/support/users/chakson/)
 * (@chakson)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-404-error-3/#post-7202776)
 * Are you on a local host? because it never worked for me on a local host, once
   i switched online it worked without any fixing

Viewing 1 replies (of 1 total)

The topic ‘Permalink problem: 404 error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Chakson](https://wordpress.org/support/users/chakson/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-404-error-3/#post-7202776)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
