Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Installation & Setup
I have got a problem
I put the 'Fuelphp' in subfolder 'fuel_intro' and set up the .htaccess file for rewriting in this folder. when I use Html::anchor i got the link '
I don't want the plublic folder display, show I try to set 'base_url' to '
But there is a problem, the css and js files can not link right. '
. cause It's in the public folder. so , What should I do for this case?
FuelPHP is designed for your public folder to be your webservers DOCROOT, so your index.php is in the root, and your code is not accessable from the outside as it is outside your docroot. If you deviate from that design, you have two rewrite challenges:
- first you will have to rewrite [url=
. to [url=
- then if not found you have to rewrite to index.php The first one is needed because your assets need a URL like [url=
. which does not exist. Alternatively you can move everything from the public folder one level up (so your index.php and assets folder are in "fuel_intro". Since everything is already in the DOCROOT, there is no need for the separate public folder anymore.
Tks a lot!
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion