Unable to log in to dashboard.

Permalink
I set pretty url's which didn't work for me, so I disabled it. Now I go back to the site and it looks like it's enabled again. When I try to log in to the dashboard, it directs me to a pretty url and fails, then I try to log in again and it gives me a message.

Invalid form token. Please reload this form and submit again.

So I can't turn this off now. I am on Godaddy, and have tried to insert the code provided in the .htaccess files but it didn't work.

Any idea how I can fix this?

Thanks.

 
jero replied on at Permalink Reply
jero
The correct fix is to insert the .htaccess code:

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

You really should try to get that working first. I'd suggest you give it another go.

However, you can disable url rewriting by editing the file

application/config/generated_overrides/concrete.php

Before you do, make sure you make a backup, because if you make a mistake here, your entire site will be dead in the water. Editing this file is not recommended.

Read that last sentence again. Make a backup.

Find the line

'url_rewriting' => true,

and replace true with false, i.e.

'url_rewriting' => false,