Invalid Token Form - Cannot Login to Edit Website After Installing SSL & applying .htaccess

Hello Everyone,

Once I installed the SSL and added my .htaccess document, my website shows up as secure however once I try logging in to the CMS, it says "Invalid Token Form. Reload this form and try again."

The only way for me to edit the site is to remove the .htaccess file, then reapply it once I'm done.

Does anyone know why this might be happening?

below is my .htaccess file

#Comment | Uncomment ''RewriteEngine on'' below if it is not in your public_html .htaccess file
#You only need to have this once in the public_html .htaccess as it covers all other Rewrites
#RewriteEngine on

#Comment | Force all URLs to https WITHOUT www
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R=301,L]

#Comment | Force all URLs to https WITH www
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R=301,L]

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
# -- concrete5 urls end --

I appreciate the help!

View Replies:
hutman replied on at Permalink Reply
If you go into your site and check the canonical url is it without the https? This can cause that issue.