C
C
CapitanFreeloader2016-06-20 17:51:01
opencart
CapitanFreeloader, 2016-06-20 17:51:01

Redirect from www to non-www opencart 2.1?

Made a redirect via .htaccess
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
The redirect worked, but the fonts broke and I can’t log in, mb there are other redirect options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2016-06-21
@CapitanFreeloader

I think there is a problem with base.
try to remove the www in the HTTPS_SERVER and HTTP_SERVER constants, if it is not removed there, and see that the urls are formed everywhere without www

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question