Rewrite rule in directory list

Discussion in 'Site & Server Administration' started by sumesh, Feb 12, 2005.

  1. #1
    I need a help to write the rewrite rule for a link directory lsit.

    My directory list contains categories & subcategories.

    So I have to use links like
    domainname/catname :- to show all subcategories & links under the catname
    &
    domainname/catname/subacatname :- to show all links under the subcatname

    Can u pls tell me hw can i set the rewrite rule for both the links.

    I need to access the file
    domainname/redirect.php?catval=catname for first type of directories
    &
    domainname/redirect.php?catval=catname&subcatval=subcatname

    like that....

    Expecting the support from u all
     
    sumesh, Feb 12, 2005 IP
  2. sumesh

    sumesh Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I didnt get any hep regarding this from any of the member till now. is that becoz of u havent seen or did i make any mistake...

    Actually I am very new to forum too....I have seen some have replied to the topics started after me....No one replied to my post....

    Is my example defined aboue is not able to understand?

    If so pls tell me...
    thanx
     
    sumesh, Feb 14, 2005 IP
  3. honey

    honey Prominent Member

    Messages:
    15,555
    Likes Received:
    712
    Best Answers:
    0
    Trophy Points:
    325
    #3
    PM me your links and let me see what I can do for you.
     
    honey, Feb 14, 2005 IP
  4. sumesh

    sumesh Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ActuallY i need to use this concept in my future project & its not setup yet....

    I was enquiring to opt rewrite rule for that or to create index.php in each category or subcategory directories...

    rewrite will be the best option.....

    Something like this

    RewriteRule ^/.* /redirectcat.php?catval=$1
    RewriteRule ^/.*/.* /redirectsub.php?catval=$1&catval=$2

    I just made thru some documents I get ; but donno the correct solutions....

    So pls help me if u can.....
     
    sumesh, Feb 15, 2005 IP