diff --git a/e107.htaccess b/e107.htaccess index 5931f46a2..9a051952d 100644 --- a/e107.htaccess +++ b/e107.htaccess @@ -68,6 +68,11 @@ RewriteRule ^media\/img\/([-A-Za-z0-9+/]*={0,3})\.(jpg|gif|png)?$ thumb.php?id=$1 [NC,L] ReWriteRule ^theme\/img\/(a)?([\d]*)x(a)?([\d]*)\/(.*)?$ thumb.php?src=e_THEME/$5&$1w=$2&$3h=$4 [NC,L] +### Redirect all www. URLs +### RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +### RewriteRule ^(.*)$ https://%1/$1 [R=301,L] + + ### Rewrite for Static Scripts ReWriteRule ^static\/[0-9]*\/(.*)$ $1 [NC,L]