set Concrete5 to remove index.php. Now I can't login!

Permalink
Hello,
From the redirects page in Concrete5 I removed the code below.
This caused a 404 on all my navigation links, including login. Now I cannot login to put it back.
Help!
Thank you

>>> For Apache <<<
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /site/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>

>>> For nginx <<<
location /site/ {
try_files $uri $uri/ /site/index.php?$query_string;
}

View Replies: View Best Answer
tallacman replied on at Permalink Reply
tallacman
have you tried yourdomain.com/index.php/login?
nkvv replied on at Permalink Reply
Thanks!
Yes, I have tried this and I can get the login page. However when I enter login credentials and click the LOGIN button it won't authenticate because it seems the index.php portion is missing in the link? It just takes me to a 404 page.
tallacman replied on at Permalink Best Answer Reply
tallacman
ftp to your install application>config>generated_overrides>concrete.php and change
'seo' => [
        'redirect_to_canonical_url' => 0,
        'url_rewriting' => true,
    ],


change true to false and save
nkvv replied on at Permalink Reply
It worked! Thank you SO MUCH!!! I really appreciate it!