Need Mod_Rewrite Expert To Advise on Script

Discussion in 'Programming' started by fireflyproject, Mar 3, 2009.

  1. #1
    Hey,

    I'm working on a script that uses mod_rewrite pretty heavily.

    It's being used to direct users to dynamic pages for different categories on a page.

    So, right now it's functioning like this:

    domain.com/category-name/

    For any subcategories it works the same way... just the one level.

    I'd like it to be able to function like this.

    domain.com/top-level-category/sub-category/

    Make sense?

    This is my current htaccess file.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9\-]+)/?$ sites.php?cat=$1

    Post here or PM me and if you think you can solve this, we'll work together.
     
    fireflyproject, Mar 3, 2009 IP
  2. chanakya

    chanakya Peon

    Messages:
    361
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Contact me on my IM id's. Google talk prefreably and we can get it done quickly
     
    chanakya, Mar 3, 2009 IP
  3. fireflyproject

    fireflyproject Active Member

    Messages:
    969
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    70
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Problem has been fixed!
     
    fireflyproject, Mar 3, 2009 IP
  4. carolynheath

    carolynheath Peon

    Messages:
    680
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Work done. :)
    Posting here so I can leave iTrader.
     
    carolynheath, Mar 4, 2009 IP