Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoving index.php on MAMP
    primarykey
    data
    text
    <p>this questions was asked before and has had many responses. The problem is nothing i tried worked. </p> <p>Background: i use MAMP and all of my web project are located under WebProjects which I relocated out of its standard location within the MAMP folder in Applications. so my structure is something like this: </p> <p><strong>Documents/WebProjects/GreatSite/Application/...</strong> </p> <p>What happened so far: my understanding is that removing index.php can be done either through httpd.conf or .htaccess. anytime i touched httpd.conf, Apache refuses to start. I tried various edits to .htaccess including the one in codeigniter.com/wiki/mod-rewrite and the last one from a post on SO which is this: </p> <pre><code>RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] </code></pre> <p>this give me the following error when i access the site: </p> <p><em>An Error Was Encountered<br> Unable to determine what should be displayed. A default route has not been specified in the routing file.</em> </p> <p>I have updated config.php to have $config['index_page'] = ''; and i have placed the .htaccess file in the GreatSite folder.</p> <p>One other note, my CI system folder is up a level from GreatSite. Not sure if this has any impact. also, apache has the module loaded. </p> <p>so, I'm hoping someone has successfully done this on MAMP and could provide direction specifically around the content of their .htaccess (or even httpd.conf), it's location and any other mods they had to make to get this going. </p> <p><strong>update</strong> </p> <p>and trying to access a controller using <a href="http://localhost:8888/greatsite/account" rel="nofollow">http://localhost:8888/greatsite/account</a> rewrites the url as <a href="http://localhost:8888/greatsite/account/index" rel="nofollow">http://localhost:8888/greatsite/account/index</a> and gives 2 errors:<br> Message: Undefined index: scaffolding_trigger<br> Filename: libraries/Router.php<br> Line Number: 164 </p> <p>and </p> <p>Message: Cannot modify header information - headers already sent by (output started at /Users/djeetee/Documents/DevProjects/system/libraries/Exceptions.php:166)<br> Filename: libraries/Session.php<br> Line Number: 662 </p> <p>hope this helps. </p> <p>thanks</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.
 

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