danielgolub / Codengine

PHP framework for small-medium web apps
http://www.codengine.net/
MIT License
1 stars 0 forks source link

Replace htaccess #12

Closed danielgolub closed 10 years ago

danielgolub commented 10 years ago

Find a better way to enable the enhanced navigation.

Note: pass the URL parameters to the $this->params array to the controller.

danielgolub commented 10 years ago

If you use Nginx as a web server simply add the following lines to your virtual.conf domain configuration (until a more permanent solution will be found):

location / {
    try_files $uri $uri/ /index.php?$args;
}

This will just redirect all requests of the domain name to the index.php file (with directory parameters).

danielgolub commented 10 years ago

After doing some research redirecting all requests to root is impossible without HTACCESS.