ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Removing index.php on linux

June 27, 2012 11:48am

Subscribe [3]
  • #1 / Jun 27, 2012 11:48am

    GabbaTheHutt

    84 posts

    Hi

    I have installed EE on HostGator and they are linux based.

    I followed the instructions in the user guide to remove index.php from the urls but it doesn’t work. I am guessing this is because it is a linux server. mod_rewrite is turned on on the server.

    How can I remove index.php when working on a linux server.

    Cheers
    Gabe

  • #2 / Jun 27, 2012 6:02pm

    Patrick Morris

    2 posts

    The AllowOverride tag in the apache config file for your website is probably set to “None”, it needs to be set to “All”. This would prevent the .htaccess file in the User Guide from taking effect.

    Here is mine for a reference, you’d have to check with your host to see if you have access to change it. The apache web server would have to be restarted for the changes to take effect I think.

    <VirtualHost *:80>
          DocumentRoot /var/www
          <Directory />
              Options FollowSymLinks
              AllowOverride All
          </Directory>
          <Directory /var/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
          </Directory>

    ... rest removed for space ...

    </VirtualHost>

  • #3 / Jun 28, 2012 12:04pm

    Shane Eckert

    7174 posts

    Hey GabbaTheHutt,

    Patrick is right! Removal of index.php is really straight forward on Linux.

    Is there anything else I can help you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases