.htaccess mod_rewrite issues

Discussion in 'Apache' started by ColorWP.com, Apr 27, 2009.

  1. #1
    I have installed AV arcade and it seems like after turning on the SEO URLs function, all of the pages except the homepage return 404 error.

    Here's how the htaccess file looks:
    RewriteEngine on
    RewriteRule ^view/([0-9]+)/([0-9a-zA-Z?-]+) index.php?task=view&id=$1&name=$2 [L]
    RewriteRule ^cat/([0-9]+)?/([0-9a-zA-Z?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&page=$3 [L]
    RewriteRule ^profile/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=profile&id=$1&name=$2 [L]
    RewriteRule ^profile/comments/([0-9]+)?/([0-9a-zA-Z?-]+) index.php?task=users_comments&id=$1&name=$2 [L]
    RewriteRule ^page/([0-9]+) index.php?task=view_page&id=$1 [L]
    RewriteRule ^task/register index.php?task=register [L]
    RewriteRule ^task/lost-password index.php?task=lost_pass [L]
    RewriteRule ^task/links index.php?task=links [L]
    RewriteRule ^task/allnews index.php?task=news [L]
    RewriteRule ^task/members index.php?task=member_list [L]
    RewriteRule ^task/messages index.php?task=messages [L]
    RewriteRule ^task/search index.php?task=search [L]
    RewriteRule ^task/news/item/([0-9]+)/([0-9a-zA-Z?-]+) index.php?task=view_news&id=$1 [L]
    RewriteRule ^task/messages index.php?task=messages [L]
    Code (ApacheConf):
    The host supports mod_rewrite so it can not be that. What may cause those 404s?
     
    ColorWP.com, Apr 27, 2009 IP
  2. nayes84

    nayes84 Member

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    check your error log of your server. see which pages gave 404 error? this will help to know where mod rewrite is looking
     
    nayes84, Apr 27, 2009 IP
  3. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #3
    dimitar christoff, Apr 27, 2009 IP