httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan G.B." <ro0ot.w...@googlemail.com>
Subject Re: [users@httpd] Rewrite Help
Date Tue, 05 May 2009 15:40:20 GMT
Something like that?

ReWriteCond %{QUERY_STRING} city=([^&]+)&state=([A-Za-z]+)
RewriteRule
    ^content/meeting-search
    civicrm/contact/search/custom?csid=14&reset=1&%{QUERY_STRING}



Regards



2009/5/5 Mike Steigerwald <mike.steigerwald@publiccomputingservices.org>:
> Hi all,
>
> I'm struggling to learn Rewrite, and I'm weak on regexp in general. Does
> anyone have time to share suggestions for rewriting URLs like:
>
> http://aameetinglocator.org/content/meeting-search?city=Bemidji&state=MN
>
> to
>
> http://aameetinglocator.org/civicrm/contact/search/custom?csid=14&reset=1&city=Bemidji&state=MN
>
> ?
>
> Note that I need to 'keep' city and state using backreference, but I haven't
> even gotten that far yet.
>
> I've tried to follow the examples in the rewrite guide, but after two days
> I'm realizing I need to swallow my pride and reach out for help.
>
> Many thanks in advance for any guidance.
>
> Mike Steigerwald
> Executive Director
> www.PublicComputingServices.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message