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
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
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.....