A development installation has been set up for me that has cloned an existing site. However, the .htaccess file no longer works to remove index.php.

Could this be because there is a dot in the URL? If so how can I fix it?

So the URL is formatted like this http://www-dev.domian.com/

And the htaccess file like this:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} !www-dev\.domian\.com/$ [NC]
    RewriteRule ^(.*)$ http://www-dev\.domian\.com/$1 [L,R=301] 

    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

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

1 Answer 1


This cannot because the dots in the URL. First need you should check is mod_rewrite.c module is enable to your server or not. If yes, You need to alter your .htaccess. Try the following last line of your code from

RewriteRule ^(.*)$ /index.php?/$1 [L]


RewriteRule ^(.*)$ /index.php?/$1 [L, QSA]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.