Looking for a MOD Rewrite Expert

Discussion in 'Programming' started by vegabond, Aug 16, 2010.

  1. #1
    Hi

    I need to make some MOD Rewrite rules for my new project, not that much critical I think but I can't make 'em :p

    My Requirement:
    1. domain.com/category.php?cat_title=seo-forums

    to: domain.com/seo-forums/

    2. domain.com/single.php?comp_id=1021&comp_title=digital-point

    to: domain.com/1021-digital-point/

    Let me know if any one can help, I'll pay your fee of course :)

    Thanks, Shabu
     
    vegabond, Aug 16, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    Read this. Or google it. It's not hard if you put some efforts into it.
    Here, it should be roughly like this:
    
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^/([a-z]+) category.php?cat_title=$1 [NC]
    RewriteRule ^/([0-9]+)-([a-z]+) single.php?comp_id=$1&comp_title=$2 [NC]
    
    Code (markup):
     
    Rainulf, Aug 16, 2010 IP
  3. vegabond

    vegabond Shabu Anower

    Messages:
    1,656
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    240
    #3
    Object not found!
    
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
    Code (markup):
    Not working :(
     
    vegabond, Aug 17, 2010 IP