Apparently it was a rewrite issue.Harro Verton wrote on Tuesday 12th of July 2011:Maybe a rights issue? Or a rewrite issue?
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /fuel/public RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(/)?$ index.php/$1 [L] <-- PAY ATTENTION TO THIS LINE RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>And then I re-read the FuelPHP online documentation, and noticed the structure. So I changed it to:
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /fuel/public RewriteRule ^(/)?$ index.php/$1 [L] <-- AND MOVED IT HERE RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>And my local documentation is back!
Jannik Zappe wrote on 01/30/11 12:13 pm:Hi,
... I'm using Ubuntu 10.10, Apache 2.2.16 and PHP 5.3.3 and mod_rewrite enabled Any idea?? Jannik
Harro Verton wrote on Thursday 14th of April 2011:You are not supposed to put all code inside your webservers docroot. The 'public' folder should be your docroot, all other folders should be outside the docroot for security reasons. If you insist on setting it up like this (which is ok for local dev purposes I guess), you need an .htaccess in the docroot that contains<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /public RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] # make sure to capture root requests too RewriteRule ^(/)?$ index.php/$1 [L] </IfModule>
I have updated the installation documentation to include this instruction.
www |-- fuel |-- docs |-- fuel |-- publicI add a .htaccess on fuel root using the above setting, but when I go to http://127.0.0.1:888/fuel, the browser returns Object not found! ERROR 404. But when I go to http://127.0.0.1:888/fuel/public, I got a successful Fuel installation message. Any ideas where I go wrong?
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /fuel/public RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(/)?$ index.php/$1 [L] RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>and it works! Silly me. Thanks FrenkyNet for pointing this out. Sorry I missed your post.
[url=http://127.0.0.1:8888/fuel/docs/installation/instructions.html]http://127.0.0.1:8888/fuel/docs/installation/instructions.html[/url] [url=http://127.0.0.1:8888/fuel/docs/installation/download.html]http://127.0.0.1:8888/fuel/docs/installation/download.html[/url] [url=http://127.0.0.1:8888/fuel/docs/installation/troubleshooting.html]http://127.0.0.1:8888/fuel/docs/installation/troubleshooting.html[/url]the other sections/URL returns:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] strip per-dir prefix: D:/Web Development/htdocs/fuel_station/public/welcome -> welcome 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] applying pattern '^(.*)$' to uri 'welcome' 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/welcome' pattern='!-f' => matched 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/welcome' pattern='!-d' => matched 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (2) [perdir D:/Web Development/htdocs/fuel_station/public/] rewrite 'welcome' -> 'index.php/welcome' 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] add per-dir prefix: index.php/welcome -> D:/Web Development/htdocs/fuel_station/public/index.php/welcome 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (2) [perdir D:/Web Development/htdocs/fuel_station/public/] strip document_root prefix: D:/Web Development/htdocs/fuel_station/public/index.php/welcome -> /fuel_station/public/index.php/welcome 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#1118910/initial] (1) [perdir D:/Web Development/htdocs/fuel_station/public/] internal redirect with /fuel_station/public/index.php/welcome [INTERNAL REDIRECT] 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#115cf80/initial/redir#1] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] add path info postfix: D:/Web Development/htdocs/fuel_station/public/index.php -> D:/Web Development/htdocs/fuel_station/public/index.php/welcome 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#115cf80/initial/redir#1] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] strip per-dir prefix: D:/Web Development/htdocs/fuel_station/public/index.php/welcome -> index.php/welcome 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#115cf80/initial/redir#1] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] applying pattern '^(.*)$' to uri 'index.php/welcome' 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#115cf80/initial/redir#1] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/index.php' pattern='!-f' => not-matched 127.0.0.1 - - [13/Apr/2011:17:14:43 --0500] [localhost/sid#5e5150][rid#115cf80/initial/redir#1] (1) [perdir D:/Web Development/htdocs/fuel_station/public/] pass through D:/Web Development/htdocs/fuel_station/public/index.phpI got an error using this url, nothing was shown although it should have displayed the default welcome view for FUEL.
127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#1116908/initial] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] strip per-dir prefix: D:/Web Development/htdocs/fuel_station/public/ -> 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#1116908/initial] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] applying pattern '^(.*)$' to uri '' 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#1116908/initial] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/' pattern='!-f' => matched 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#1116908/initial] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/' pattern='!-d' => not-matched 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#1116908/initial] (1) [perdir D:/Web Development/htdocs/fuel_station/public/] pass through D:/Web Development/htdocs/fuel_station/public/ 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#11108f0/subreq] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] strip per-dir prefix: D:/Web Development/htdocs/fuel_station/public/index.php -> index.php 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#11108f0/subreq] (3) [perdir D:/Web Development/htdocs/fuel_station/public/] applying pattern '^(.*)$' to uri 'index.php' 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#11108f0/subreq] (4) [perdir D:/Web Development/htdocs/fuel_station/public/] RewriteCond: input='D:/Web Development/htdocs/fuel_station/public/index.php' pattern='!-f' => not-matched 127.0.0.1 - - [13/Apr/2011:17:15:28 --0500] [localhost/sid#5e5150][rid#11108f0/subreq] (1) [perdir D:/Web Development/htdocs/fuel_station/public/] pass through D:/Web Development/htdocs/fuel_station/public/index.phpThis time the default welcome view was correctly shown. Both times the mod_rewrite made the final pass through the same path (/Web Development/htdocs/fuel_station/public/index.php) so I don't understand why it's not working properly. This Framework has lots to offer from what I've read since it addresses many things that other Frameworks lack of or are restricted to... so I would like to be able to test it... Anyone's help would be very much appreciated...
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /public RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] # make sure to capture root requests too RewriteRule ^(/)?$ index.php/$1 [L] </IfModule>
It looks like you're new here. If you want to get involved, click one of these buttons!