1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-18 03:31:54 +02:00

Added option to .htaccess to redirect all www. requests.

This commit is contained in:
Cameron 2021-09-13 13:31:04 -07:00
parent c94722e00b
commit 5860d23882

View File

@ -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]