Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherProject Help Wanted

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old December 16th, 2003, 03:01 AM
jclawson jclawson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 jclawson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old December 16th, 2003, 05:48 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Whoever successfully meets the challenge will recieve a quick $40 transfered via paypal

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.

Reply With Quote
  #3  
Old December 16th, 2003, 12:40 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
(moved to "Project Help Wanted")
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > Ultimate Mod Rewrite Challenge $$$


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway