Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Pretty Urls
  • Hi. My name is Sergey.
    I run my application: http://www.site.com/public/index.php/welcome/index
    How to run it this way http://www.site.com/welcome/index (Without /public/index.php) ? I try to set 'index_file' => false but its dosnt work. Should I create a one more .htaccess file ? what code must be there ? Thanks
  • Hello Sergey, If you have to use that URL then you haven't installed FuelPHP as per the recommendations, but you have installed everything inside your webservers docroot. The recommendation is to make the public folder your docroot, so everything else is outside it (as it's one level up). If you can't do that (for example because you don't have the server access), the public folder isn't needed. Just move the .htaccess, index.php and the assets folder one level up (so they are in your docroot), and remove the public folder. That is a lot easier then trying to get rid of the 'public' folder in the URL through .htaccess.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion