php Zend/ MVC without mod_rewrite
I've seen it stated in several blog sites around the net, yet I think it shoud be reviewed below. What can we do when we have an MVC structure (I want ZEND) in PHP yet our host does not give mod_rewrite? Exist any kind of "short - cuts"? Can we move control at all (to make sure that a mapping may take place in between web pages)? Any kind of suggestions? Thanks : -)
mod_rewrite is virtually crucial in today is organizing setting. yet however not every person obtained the message.
Great deals of the huge php programs (I'm assuming magento, yet the majority of can deal) have a rather - link loss back setting for when mod_rewrite isn't readily available.
Links wind up resembling www.site.com/index.php?load - this - web page
They have to be running some magic to order the variable name from the $_ GET variable and also utilizing it as the selector wherefore module/feature to execute.
In a relevant note, I've seen great deals of screwed up URLs in the new facebook website where it is making use of the #. So web links resemble www.new.facebook.com/home.php#/inbox/ Clearly we are not suggested to see that yet it recommends that they are possibly analyzing the $_ SERVER [' REQUEST_URI' ] variable.
If you can locate a non - mod_rewrite means to reroute all demands to index.php (or any place your init manuscript is), you can, as stated over, make use of 'REQUEST_URI' to order the section of the address after the domain name and afterwards parse it as you like and also make the demand do what you desire it to. This is just how Wordpress does it (provided, with mod_rewrite). As long as you can reroute demands to your index web page while preserving the very same URI, you can do what you require to to refine the demand.
Zend framework need to function without
mod_rewrite. If you can cope with your URL :s looking even more like "/path/to/ app/index. php/controller/action". If you had mod_rewrite you can get rid of the "index.php" little bit, yet it needs to collaborate with also.
It is all an issue of establishing the courses to approve the index.php component.