Site pages run fine, but Login attempt gives 404

I had a working Concrete site, “domain.com” redirected with permanent, Match-www, non-wildcard 301 redirect to “https://domain.com/cms”, that external users can see, and I could log into Concrete from ok. It is an https site. This set up has been working successfully for years.
I upgraded it to 9.2.4 successfully, and ran the security reports, fixing issues before setting the site to Production (and enabling all suggested caching as part of the security reports).

Stupidly, I changed the Pretty URL options to Pretty URL’s. Since then, while the production site works fine for users, when I try to log in to Concrete, I get a 404 error message instead of the login page. The URL shown that fails is “domain.com/cms/login”.

The only way to get the login page to render is to manually type the URL “domain.com/cms/index.php/login”. However, on entering userid and password, and pressing enter, the next page that fails is “domain.com/cms/login/authenticate/concrete”.
If I insert index.php again: “domain.com/cms/index.php/login/authenticate/concrete”, I am returned to the login screen with the error message: “Invalid form token. Please reload this form and submit again.”

How can I reset the Pretty URL settings to allow me to log in again, without at this time being able to log in to the dashboard?

(Concrete version: 9.2.4, PHP version: 8.1.26)

Make sure the following option is set to true.
public/application/config/generated_overrides/concrete.php

'url_rewriting' => true

Thanks for responding - it is:
‘seo’ => [
‘redirect_to_canonical_url’ => true,
‘url_rewriting’ => true,
],

That was actually the problem - I manually edited to

‘seo’ => [
‘redirect_to_canonical_url’ => true,
‘url_rewriting’ => false,
],
and the problem was fixed - I could log in and use the dashboard.

Hi new to concrete cms were do i enter this code thanks

@retiredmedic999 the file to post that code is located at:
application/config/generated_overrides/concrete.php

thank you were do i add this thanks again

[
‘version_installed’ => ‘9.3.3’,
‘version_db_installed’ => ‘20240711000000’,
‘misc’ => [
‘login_redirect’ => ‘HOMEPAGE’,
‘access_entity_updated’ => 1726137273,
],
‘email’ => [
‘default’ => [
‘address’ => ‘danielfehilly@gmail.com’,
],
],
‘security’ => [
‘production’ => [
‘mode’ => ‘development’,

Hi

must be a typo somewhere wont load at all now

thanks anyway

Post the entire contents of your file here so we can check it out for typos.

<?php /** * ----------------------------------------------------------------------------- * Generated 2024-09-13T12:00:14+00:00 * * DO NOT EDIT THIS FILE DIRECTLY * * @item security.production.staging.show_notification_to_unregistered_users * @group concrete * @namespace null * ----------------------------------------------------------------------------- */ return [ ‘version_installed’ => ‘9.3.3’, ‘version_db_installed’ => ‘20240711000000’, ‘misc’ => [ ‘login_redirect’ => ‘HOMEPAGE’, ‘access_entity_updated’ => 1726137273, ], ‘email’ => [ ‘default’ => [ ‘address’ => ‘danielfehilly@gmail.com’, ], ], ‘security’ => [ ‘production’ => [ ‘mode’ => ‘development’, ], ], ‘seo’ => [ ‘redirect_to_canonical_url’ => true, ‘url_rewriting’ => false, ], ];

Try This code

<?php 
 /** 
 * ----------------------------------------------------------------------------- * 
 Generated 2024-09-13T12:00:14+00:00 * 
 * DO NOT EDIT THIS FILE DIRECTLY * 
 *
 * @item      version_db_installed
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
 */
return [ 
	'version_installed' => '9.3.3', 
	'version_db_installed' => '20240711000000', 
	'misc' => [ 
		'login_redirect' => 'HOMEPAGE', 
		'access_entity_updated' => 1726137273, 
	],
	'email' => [ 
	'default' => [ 
		'address' => 'danielfehilly@gmail.com', 
		], 
		], 
	'security' => [ 
	'production' => [ 
	'mode' => 'development', 
	], 
	],
	'seo' => [
	'redirect_to_canonical_url' => true,
	'url_rewriting' => true, 
	], 
];