E
E
Evgeny Shevtsov2015-08-16 22:23:20
htaccess
Evgeny Shevtsov, 2015-08-16 22:23:20

What is wrong with this htaccess?

Here is the rule

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

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

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

gives error 500

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton B, 2015-08-16
@bigton

Is the dot in the last line not escaped?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question