URL Rewrite

Made the mistake of checking the box, went to uncheck and get invalid token. Tried to manually update .htaccess and it keeps getting overwritten. Pages aren’t loading. I can only get to system settings through a direct url stored in browser history. When I try to change the settings I keep getting invalid token or page does not exist. Please help!

You can edit the application/config/generated_overrides/site.php file to make the changes you need.
Ignore the warning about editing the file directly.

1 Like

Sadly that was not enough to get the job done, but you did put me on the right path. I will write below the method used to get it running.

There is a warning that changes to the file you mentioned may be overwritten, and in my case they were.

Force Canonical Tag Off via Override File
Since the generated config may be ignored or overwritten, create or edit this file:

application/config/generated_overrides/concrete.php

Add this override block:

<?php
return [
    'seo' => [
        'canonical_tag' => [
            'enabled' => false,
        ],
    ],
];

Clear Cache Manually
access the server:
• Delete everything inside:

application/files/cache/
application/files/tmp/

  • If sessions are stored in files delete:
    application/files/sessions/