Forums

monthly archives link showing a 404 (6 posts)

  1. Anonymous
    Unregistered
    Posted 4 years ago #

    hi!
    i just got .htaccess put up yesterday to give 'nic url's'. my individual and category pages work fine now but my monthly archives page gives a 404 page not found error. please help.
    my .htaccess file is as follows:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^the_vault/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^the_vault/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^the_vault/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^the_vault/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^the_vault/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?.php([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^the_vault/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)?.php/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^the_vault/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)?.php/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]

    you can see what i mean at my site deydas.com.
    thank you in advance.
    -abhi.

  2. macmanx
    Member
    Posted 4 years ago #

    Huh, never seen a permalink end in %postname%.php before. Did you set your permalinks through Options/Permalinks? And, if you did, what value did you enter? Did you copy the rewrite rules into .htaccess exactly?

  3. macmanx
    Member
    Posted 4 years ago #

    P.S. After fixing that, you may want to attack your design a bit. Your sidebar is showing up under your posts.

  4. Anonymous
    Unregistered
    Posted 4 years ago #

    ya i set up the .php part because i wanted the permalin k pages to end in .php.
    and the CSS part is an IE only error and it looks fine in firefox. i will see to it though.
    any ideas how i can fix it?

  5. Anonymous
    Unregistered
    Posted 4 years ago #

    looks like the .php extension thing caused all the problem, wonder why???

  6. macmanx
    Member
    Posted 4 years ago #

    I figured as much. Permalinks and mod_rewrite are very touchy and should only end with a / , not .php. I'm not sure what's causing your sidebar troubles though. Ask in the Templates and Design forum and someone should be able to help you with that. http://wordpress.org/support/5

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.