I use the following rules in .hcaccess in order to redirect non-www to www and trailing dashes etc
## Turn on rewrite engine
RewriteEngine on
## Check if not directory and ends in /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
## If not a directory skip next RewriteRule
RewriteRule ^ - [S=2]
## Check if HTTPS and WWW
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC]
RewriteCond %{https} off
## This RewriteRule skipped if URI was a directory
RewriteRule ^(.*)$
https://www.example.com/$1 [R=301,L]
## This RewriteRule used if URI was a directory
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [S=1]
RewriteRule ^(.*)/$
https://www.example.com/$1 [R=301,L]
## End - Custom redirects
This causes the following issues
EasyArticles
(invalid token) message when I try to publish an article.
Komento.
Comments don't get published after clicking post
js error
site-3.1.2.min.js:100 Uncaught TypeError: f.replace is not a function
Easy Discuss
Upload image and video modal window is empty with an exclamation sign in in the middle of it.
how can I fix this?
please note that when I remove the mentioned rules from the .hcaccess file all extensions function normally.