• 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: https://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
    https://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)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mod_rewrite problem’ is closed to new replies.