.HTACCESS Rewrite Help Required!!!

Discussion in 'Programming' started by doubler, Feb 19, 2011.

  1. #1
    I am using this arcade script: http://www.avscripts.net/avarcade/

    I just want to make category URLs more friendly for this site: http://www.coolgamo.com/

    current URL: http://www.coolgamo.com/cat/1/Action/newest-1
    required URL: http://www.coolgamo.com/category/Action/

    so please let me know if anybody can fix this issue. It would be highly appreciated :)

    posting here .ataccess file's content

    DirectoryIndex index.php
    
    RewriteEngine on
    RewriteRule ^cat/([0-9]+)?/([^/\.]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&page=$3 [L]
    RewriteRule ^cat/([0-9]+)?/([^/\.]+)/([0-9a-zA-Z?-]+)/p([0-9]+) index.php?task=category&id=$1&name=$2&sortby=$3&page=$4 [L]
    
    RewriteRule ^cat/([0-9]+)?/([^/\.]+)/([0-9a-zA-Z?-]+)-([0-9]+) index.php?task=category&id=$1&sortby=$3&page=$4 [L]
    
    RewriteRule ^category/([0-9]+)?/([^/\.]+) index.php?task=category&id=$1&name=$2 [L]
    RewriteRule ^tag/([0-9]+)?/([^/\.]+) index.php?task=tag&id=$1&t=$2 [L]
    RewriteRule ^tag/([^/\.]+) index.php?task=tag&t=$1 [L]
    RewriteRule ^profile/([0-9]+)?/([^/\.]+) index.php?task=profile&id=$1&name=$2 [L]
    RewriteRule ^profile/comments/([0-9]+)?/([^/\.]+) 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/page([0-9]+) index.php?task=news&page=$1 [L]
    RewriteRule ^task/allnews index.php?task=news [L]
    RewriteRule ^task/members/([^/\.]+)-([^/\.]+)/page([0-9]+)? index.php?task=member_list&sort=$1&order=$2&page=$3 [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/submit index.php?task=submit [L]
    RewriteRule ^task/news/item/([0-9]+)/([^/\.]+) index.php?task=news&id=$1 [L]
    RewriteRule ^task/messages index.php?task=messages [L]
    RewriteRule ^r-([0-9]+)?-([0-9]+)? go.php?id=$1&ref=$2 [L]
    RewriteRule ^r-([0-9]+)? go.php?id=$1 [L]
    RewriteRule ^([^/\.]+)/([0-9]+)/([^/\.]+) index.php?task=view&id=$2&name=$3 [L] 
    Code (markup):
     
    Last edited: Feb 19, 2011
    doubler, Feb 19, 2011 IP
  2. digitanay

    digitanay Member

    Messages:
    68
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    u need to add something like
    RewriteRule ^cat/1/Action/newest-1 category/Action
     
    digitanay, Feb 21, 2011 IP
  3. doubler

    doubler Active Member

    Messages:
    952
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    70
    #3
    hi digitanay, i added this query in .htaccess file but still it isn't working :(
     
    doubler, Feb 21, 2011 IP