WordPress.org

Forums

mod_rewrite problem (6 posts)

  1. kysbruden
    Member
    Posted 11 years ago #

    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
    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 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. :-)

  2. jumbo
    Member
    Posted 11 years ago #

    Does everything work if you enable nice permalinks?

  3. kysbruden
    Member
    Posted 11 years ago #

    No it doesn't work, that's why I shut them off for now.

  4. kysbruden
    Member
    Posted 11 years ago #

    Does anyone has an answer here please ?

  5. wellard1981
    Member
    Posted 11 years ago #

    Your web host needs to have the "mod_rewrite" module loaded in Apache otherwise it will result in 500 Internal Server Errors.

  6. kysbruden
    Member
    Posted 11 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.