Skip to content
Advertisement

php Zend / MVC without mod_rewrite

I’ve seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod_rewrite? Are there any “short-cuts”? Can we transfer control in any way (so that a mapping may occur between pages)? Any ideas? Thank you 🙂

Advertisement

Answer

Zend framework should work without mod_rewrite. If you can live with your URL:s looking more like “/path/to/app/index.php/controller/action”. If you had mod_rewrite you could do away with the “index.php” bit, but it should work with too.

It’s all a matter of setting up the routes to accept the index.php part.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement