Title: mod_rewrite problem
Last modified: August 18, 2016

---

# mod_rewrite problem

 *  [kysbruden](https://wordpress.org/support/users/kysbruden/)
 * (@kysbruden)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/)
 * I have a problem with mod_rewrite. When I click on a permalink to a single post,
   it shows the archive (all postst) for 2004.
    Example: [http://www.iblog.dk/nldk/2004/09/25/shit](http://www.iblog.dk/nldk/2004/09/25/shit)
   shows all the posts for 2004. I am using the following mod_rewrite rules : RewriteEngine
   On RewriteBase /nldk/ RewriteRule ^category/?(.*) /nldk/index.php?category_name
   =$1 [QSA] RewriteRule ^([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([
   0-9]+)?/?$ /nldk/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA] (
   I have currently disabled the nice permalinks option, but my .htaccess file does
   contain the rules, so typing the [http://www.iblog.dk/nldk/2004/09/25/shit](http://www.iblog.dk/nldk/2004/09/25/shit)
   in my browser should bring up the single post). Should I change something in 
   my index.php to make it work ? I am a mod_rewrite and WordPress newbie so bear
   over with me if this is a stupid question. 🙂

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

 *  [jumbo](https://wordpress.org/support/users/jumbo/)
 * (@jumbo)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95488)
 * Does everything work if you enable nice permalinks?
 *  Thread Starter [kysbruden](https://wordpress.org/support/users/kysbruden/)
 * (@kysbruden)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95503)
 * No it doesn’t work, that’s why I shut them off for now.
 *  Thread Starter [kysbruden](https://wordpress.org/support/users/kysbruden/)
 * (@kysbruden)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95662)
 * Does anyone has an answer here please ?
 *  [wellard1981](https://wordpress.org/support/users/wellard1981/)
 * (@wellard1981)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95668)
 * Your web host needs to have the “mod_rewrite” module loaded in Apache otherwise
   it will result in 500 Internal Server Errors.
 *  Thread Starter [kysbruden](https://wordpress.org/support/users/kysbruden/)
 * (@kysbruden)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95736)
 * My webserver does have the mod_rewrite installed. It does redirect but only to
   the wrong page !
    In stead of redirecting to the entrypage it redirects to the
   archive page 🙁 You can try it here: [http://www.iblog.dk/nldk/2004/09/25/shit](http://www.iblog.dk/nldk/2004/09/25/shit)

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

The topic ‘mod_rewrite problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [kysbruden](https://wordpress.org/support/users/kysbruden/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/mod_rewrite-problem/#post-95736)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
