hi,
I m currently working on a website for which i m writing htaccess file. I have a small problem.. My same script index.php takes either 2 or 3 arguments and accordingly i wish it should be rewritten so for that I am trying to use following code.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)-(.*)\.htm$ index.php?act=$1&name=$2
RewriteRule (.*)-(.*)-(.*)\.htm$ index.php?act=$1&name=$2&start=$3

when it parses 2 argument file.. it works pretty well.. but for 3 arguments it's not at all working. The page is loaded.. but all 3 parameters are not sent properly. if I echo $_GET it echos out $1 value +$2 value both together. Please help
can we have 2 rewrite rules for a single page? please reply asap. Thanks :)

Please .. somebody reply :| i am stuck :'(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.