Note that there are some explanatory texts on larger screens.

plurals
  1. POPublic and Fuel folder in the same subdirectory, but no public/ in the URL
    primarykey
    data
    text
    <p>After reading over and over again the <a href="http://docs.fuelphp.com/installation/instructions.html#/install_inside_root" rel="nofollow">Installation Instructions</a> for Fuel PHP (which I'm loving), I can't figure out how to make the app work <strong>without the url showing public/</strong>, and without moving the fuel folder from the docroot. (so it's all sefl-contained).</p> <p>My setup is this:</p> <p><code>/Users/AeroCross/Sites</code> (this is where MAMP is loading all the files, i.e localhost) <code>/Users/AeroCross/Sites/projects/mariocuba</code> (this is the webroot of the Fuel app)</p> <p>That contains:</p> <pre><code> mariocuba/ .htaccess oil fuel/ app/ core/ packages/ public/ .htaccess </code></pre> <p>The <code>.htaccess</code> inside the <code>mariocuba</code> folder:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteBase /public RewriteRule ^(/)?$ index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] &lt;/IfModule&gt; </code></pre> <p>The .htaccess inside the <code>public</code> folder:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </code></pre> <p></p> <p>If I try to load the app (/Users/AeroCross/Sites/projects/mariocuba/), this error appears:</p> <pre><code>Not found. The requested URL /public/index.php/ was not found on this server. </code></pre> <p>I don't know what to do in here.</p> <p>I know that's not designed to work that way, and I know that's insecure, but this is for developing and version control purposes. What can I do (with minimal tweaking of the file system) to make this work?</p> <p>It's worth noting that I have my <code>config.php</code> file configured with a <code>base_url = null</code> and <code>index_file = null</code>.</p> <p>Any help appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload