This is a discussion on How many rewriterules do I need for this task?? within the Linux Web Servers forums, part of the Web Server and Related Forums category; All the pages on my site are of the form http://www.mysite/arg1-arg1value-arg2-arg2value- ... argN-argNvalue.html ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
All the pages on my site are of the form
http://www.mysite/arg1-arg1value-arg2-arg2value- ... argN-argNvalue.html and need to be rewritten as http://www.mysite/afile.php?arg1=arg...rg2=arg2value& ... argN=argNvalue Could I use N ReWriteRule statements to take care of my entire site? Would the order matter? Would each one look something like this? RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+).html$ $1.php?$2=$3&$4=$5 [L] thanks, brian |