|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Ultimate Mod Rewrite Challenge $$$
For all you mod-rewriters out there I have a challenge for you. Whoever successfully meets the challenge will recieve a quick $40 transfered via paypal.
The rewrite I need must transform somthing that looks like this: example.com/index/action/tier/controller/event/var1/value1/var2/value2.html into: example.com/index.php?action=tier.controller.event&var1=value1&var2=value2 additionally it must be able to handle any number of parameters. This means you cannot simply hard code the solution for a specifict parameter pattern (like they do in every single SES rewrite tutorial). You must make use of the [QSA] flag for a valid recursive solution. The only thing you may assume is that "action" will always be named "action" and it will always be a 3 words separated by a '.'. There may be no other parameters or there may be infinite. The solution will have no more than 4-5 lines... short and sweet Furthermore it must work on UNIX and Windows Apache version 1.3.29 and you must test it.... do not post unless you have tested it. If it doesn't work on my machine... you lose... I don't care if it works on your machine with Apache 2 ... thats not what i am running. Prize money may be divided up between several people but is under my sole discretion to do so. Contest expires on Dec 30 or if I find the solution first.... If I find the solution I will post it on this thread for everyone's benefit. Last edited by jclawson : December 16th, 2003 at 03:05 AM. |
|
#2
|
|||
|
|||
|
Quote:
Unfortunately this forum wasn't intend to be that way but for people with learning effort to ask questions for FREE. Please delete this thread and repost the same thing to Project Help Wanted forum or Hire A Programmer forum.. As far as your requirement, I notice you have a design flaw in your PHP implementation itself. The /var1/value1/var2/value2.html should be handled by your PHP, not mod_rewrite, it's especially true when it's infinite or null as you mentioned. Now tell your programmer or yourself to fix your PHP coding. As far as this kind of mod_rewrite ruleset, it can be easily located if you search this forum first (apparently you didn't) because there are a couple dozen hundred examples indentical to your case. Last edited by freebsd : December 16th, 2003 at 06:00 AM. |
|
#3
|
|||
|
|||
|
(moved to "Project Help Wanted")
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Other > Project Help Wanted > Ultimate Mod Rewrite Challenge $$$ |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|