Re: Rewrite Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux