[wplug] httpd rewrite help

Neal Sofge neal_sofge at rand.org
Wed Aug 27 22:33:24 EDT 2008


That first one looks promising -- what's the failure mode?


On Aug 27, 2008, at 2:26 PM, Chris Romano wrote:

> I'm trying to write a RewriteRule but I'm not very get with regex.
>
> I'm trying to turn this link:
> www.example.com/a/k=VALUE1&u=VALUE2
>
> into this:
> www.example.com/a/index.php?k=VALUE1&u=VALUE2
>
> I've tried the following two rules and they don't work.  I'm just
> having a hard time find clear howtos on this.
> RewriteRule ^a/([^/]+)?$ a/index.php?$1 [L]
> RewriteRule   ^a/([A-Za-z0-9-]+)/([0-9]+)?$ a/index.php?k=$1&u=$2 [L]
>
> I have a few other rules that I've been able to get to work, but this
> one is giving me problems.
>
> Thanks,
> Chris
>
> -- 
> "They that would trade essential liberty for a little temporary safety
> deserve neither." -- Benjamin Franklin
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug



--
Neal Sofge, Lead Web Technologist
RAND Corporation <http://www.rand.org/>



__________________________________________________________________________

This email message is for the sole use of the intended recipient(s) and
may contain confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.


More information about the wplug mailing list