Closed mikebranderhorst closed 12 years ago
Script name shouldn't be empty. If it is, your base_url will never by correct, so returning a slash doesn't do you much good.
What environment are you using (fgci perhaps?), and is it available elsewhere (like in $ENV)?
This has waited 8 days, if it gets no further feedback it will be closed.
Closing due to no feedback.
Thx for feedback, I can't reproduce the problem (sorry) and the system I use for dev is MAMP 2.0.5 default settings.
I would like to reopen this issue.
I have the same problem, and I can reproduce it in the following setup:
When Apache server is configured with an AliasMatch to route all requests (except /assets/) to index.php, the 'script_name' for some reason do not get set:
Alias /assets/ /var/www/fuelphp/public/assets/ AliasMatch ^(.*)$ /var/www/fuelphp/public/index.php/$1
I have no idea whether this is a bug in Apache (2.2.17), but in any case it seems undue to check for trailing slash inside the conditional.
Rather than insist that script_name should never be empty for fuelphp to work, wouldn't it be better to simply add the trailing slash, and thereby making it work for people who prefer Alias over Rewrite rules?
Thanks, Jakob
If somehow script_name is empty, base_url misses a trailing slash.
https://github.com/fuel/core/blob/1.1/develop/classes/fuel.php#L308
Shouldn't this be the correct code?