pretty urls problem

Permalink 3 users found helpful
Hi - I am on version 8.4.1
Just checked the pretty urls box in the dashboard and was given this code to add to the .htaccess file:
<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>

Now I am getting a 504 error trying to access the site, and can't access the dashboard either.
I have seen some other threads that suggest editing application / config / generated_overrides / site.php and concrete.php but I'm not sure what to do to get back into the dashboard, can someone please help?

 
mnakalay replied on at Permalink Reply
mnakalay
could you check that on the server, the file application/config/generated_overrides/concrete.php has the key "url_rewriting" and is set to true?
So the file will have an array fo keys and values like this
<?php
/**
 * -----------------------------------------------------------------------------
 * Generated 2019-01-08T08:46:53+00:00
 *
 * DO NOT EDIT THIS FILE DIRECTLY
 *
 * @item      seo.url_rewriting
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
 */
return [
    'version_installed' => '8.4.2',
    'version_db_installed' => '20180716000000',

I simplified this one and yours might be in a different order and will have differences but you can see url_rewriting at the bottom.
If you have it set to false, set it to true. If you don't have it, add it as it is in my example (as a key of the "seo" array) and set it to true