Hi,
You might want to look for the QSA (Query-string append) parameter to
RewriteRule in mod_rewrite. Refer to the apache docs for this.
Gerard
Matt Pearson wrote:
Hi everyone,
I have a problem with GET forms submitting to controllers within the
framework.
I have a GET form in a page outside of the Zend Framework app. It does a
normal GET to the search controller of my Framework app like this (I
have a custom route set up)
/app/search?q=query
However, my search controller can't get a value for 'q' and the custom
routes all seem to strip off the portion of the url after the '?' !
How do I get routes like Zend_Controller_Router_Route_Regex to use the
portion after the '?'
I have tried disabling all my routes and using the 'real' Framework
path. This works:
/app/search/index/results?q=query
But then I have the problem that my Zend Paginator links become things
like:
/app/search/index/results/page/1
Which doesn't work, because it omits the search query.
When URIs are in /proper/framework/format everything is fine. I've seen
people use Javascript to get around this problem, but I don't want to
make my site Javascript dependent.
Can anyone help? I'm sure there is something obvious that I'm doing
wrong.
For full disclosure; here are my Apache rules:
RewriteCond %{REQUEST_FILENAME} !-f[OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/app/(.*) /app.php?$1 [L]
(My front controller defines /app as the BaseUrl)
Thanks
Matt Pearson
Internet Solutions Developer
Liz Earle Beauty Co.
01983 813884
Work with the environment... think before you print
Liz Earle Naturally Active Skincare
The Green House Ryde IOW PO33 1BD
Telephone +44 (0)1983 813913. Fax +44 (0)1983 813912.
Email naturallyact...@lizearle.com <mailto:naturallyact...@lizearle.com> Web www.lizearle.com <http://www.lizearle.com>
Liz Earle Naturally Active Skincare is a trading name of Liz Earle Beauty Co. Limited.
Registered in England No. 3070395 Registered address: 5 Fleet Place, London,
EC4M 7RD.