Unable to log in after removing parent directory from URL

Permalink
I trying to install another website on my hosting ( asphostportal.com ). There's one concrete5 site in the root. I've made another folder in which I've put another concrete5 website. It's basically the same site but it leads to a different database.

root --> base website

root/example -> website copy with redirect to other URL

By updating the .htaccess I have removed the root/example folder from the URL. So instead of example.com/example/ it goes to example-2.com. Which is fine and should be okay.

The problem I have is while logging in, I get this error:

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

By removing the URL folder redirect I can log in again, but the URL has the folder attached again.

My .htacces looks like this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond %{THE_REQUEST} \s/+example/(\S*) [NC]
RewriteRule ^ /%1 [R=301,L,NE]


Any help would be appreciated.

 
kenesseyg replied on at Permalink Reply
I have exactly the same Problem. Could you solve it?

Regards
Géza