Bluehost.com Web Hosting $6.95

How many rewriterules do I need for this task??

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


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-30-2005
Brian Huether
 
Posts: n/a
Default How many rewriterules do I need for this task??

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



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0