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 with .htacces

April 10, 2012 8:54am

Subscribe [1]
  • #1 / Apr 10, 2012 8:54am

    Ruben NL

    2 posts

    Hello EE,

    I’ve a problem with removing the index.php via .htaccess. I already searched trough the forums and tried every answer there was given, but none were succesfull.
    So i hope someone could help me out here.

    I am trying to change this url: http://subdomain.domain.com/ee/index.php/about/ into http://subdomain.domain.com/ee/about/
    Changing the $config[‘uri_protocol’] didnt help also.

    EE version: 2.4
    mod_rewrite: on
    Name of your site’s index page: this is blank.
    host: our host supports everything and isn’t GoDaddy.
    htaccess:

    <IfModule mod_rewrite.c> 
      RewriteEngine On 
      # Removes index.php 
      RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] 
      RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule ^(.*)$ /index.php/$1 [L] 
      # If 404s, "No Input File" or every URL returns the same thing 
      # make it /index.php?/$1 above (add the question mark)
     </IfModule>

    Can somebody please help?!

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

ExpressionEngine News!

#eecms, #events, #releases