Zend URL
Posted: Thu Feb 21, 2008 6:30 pm
Hi,
I'm giving Zend another try and have come across a slight hitch
I want the URL to be http://localhost/event/title/a-title, using EventController.php. The problem is that it tries to interpret title as an action, but I want it to use it as a $_GET parameter.
It works fine if I use an IndexController.php with an eventAction i.e. the URL is:
http://localhost/index/event/title/a-title. But I'd like to get rid of the index part.
The other situation it works is using the URL http://localhost/event?title=a-title. I've tried using a RewriteRule in the main .htaccess but that doesn't seem to work. The Rule I used was:
RewriteRule ^event/title/(.*)$ /event?title=$1
Any suggestions as to how I could accomplish this?
I'm giving Zend another try and have come across a slight hitch
It works fine if I use an IndexController.php with an eventAction i.e. the URL is:
http://localhost/index/event/title/a-title. But I'd like to get rid of the index part.
The other situation it works is using the URL http://localhost/event?title=a-title. I've tried using a RewriteRule in the main .htaccess but that doesn't seem to work. The Rule I used was:
RewriteRule ^event/title/(.*)$ /event?title=$1
Any suggestions as to how I could accomplish this?