Expression Engine URLs

Expression Engine URLs

Posted by: dmarino
Posted on: 2007-07-19 06:15:00

I'm trying to get rid of the index.php in my EE urls. I've tried all the methods of creating/modifying the .htaccess in the root directory (where the index.php file resides) discussed on EE's forum and wiki and none of them seem to work for me. From what I've read it sounds like others have had problems with EE and Dreamhost too. Can anyone here answer me if there's a way to get rid of that pesky index.php - my EE site is eetest.iamdanielmarino.com

Thanks

Daniel Marino | www.iamdanielmarino.com

Re: Expression Engine URLs

Posted by: gordaen
Posted on: 2007-07-20 21:12:00

RewriteEngine On
#Handle comment redirection
RewriteCond %{THE_REQUEST} !^POST
RewriteRule ^template_group/?(.*)$ /$1 [R=301,L]
#Handle removal of index.php and template group from EE URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/template_group/$1 [L]

Then go to Control Panel Home › Admin › System Preferences › General Configuration and completely delete the value for the index.php.

More info

Re: Expression Engine URLs

Posted by: dmarino
Posted on: 2007-07-23 06:22:00

Same problem - still not working...

Daniel Marino | www.iamdanielmarino.com

Re: Expression Engine URLs

Posted by: gordaen
Posted on: 2007-07-23 14:41:00

Do you have the same problem with a basic .htaccess like this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

(Note the question mark after index.php; sometimes it works better with it and sometimes without it).

Re: Expression Engine URLs

Posted by: dmarino
Posted on: 2007-07-23 17:04:00

I've tried it with and without the question mark - I shouldn't need to use it though because I'm not using "Forced Query Strings"

Daniel Marino | www.iamdanielmarino.com

Re: Expression Engine URLs

Posted by: gordaen
Posted on: 2007-07-24 09:59:00

Hmm, I'm sorry, I don't know what else to suggest. I've been playing with CodeIgniter lately and I removed index.php from the config and made my .htaccess look like this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

That worked for me, but CI isn't as complex as EE (though they're closely related). Hopefully someone else has some ideas.

Tags: expression engineurlsphp filedreamhostroot directoryhtaccesswiki