Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Help,phalcon How can we don't use the rewrite?

I don't use the rewrite,phalcon How to configure


Hi, Can you explain a bit further please? You can't set up the Apache rewrite module or is it something else?

Also, check


Thank you for your answer. I want to say is I do not want to use rewrite. Do not use rewrite to do development .


Well then I guess you'll have to implement a router in PHP yourself.

The tricky point will be that you need to direct any URL to a same PHP file where you can then handle the URL rewriting/re-interpretation.

What you can do is set the php.ini variable autoprependfile ( so any request for a PHP file will first execute the prepended file. That's where you can then parse $SERVER['REQUESTURI'] and reroute the requests to the Phalcon app controllers accordingly.

But I'm a bit short on the Phalcon inside workings to explain you how you can then pass your request variables on to the framework engine... maybe someone else can help you with that.

Otherwise, this blog post may bring you a but further down your path:

Good luck, Steven

P.S.: What's the point of not using rewrite in development? If you can use it in production, then I suggest you use it in development as well.


Thanks for pointing us to this URL, nice to know!