joomla 3.9 + virtuemart 3.8.8 Problem with www

bossserga

New member
XNullUser
Joined
Jun 18, 2022
Messages
4
Reaction score
0
Points
1
Location
Kiev
NullCash
6
Please tell me how to configure the site to be displayed without www.site.com
I reviewed all the config files and the database, the domain address with www is not registered anywhere. But the site for some reason is displayed with www
 

xaudiolap

New member
XNullUser
Joined
May 26, 2022
Messages
18
Reaction score
1
Points
3
NullCash
33
You can force the site into a non-www version, take a look at the way you can achieve this with the .htaccess file (I assume you are in an Apache server):
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

But note that this will not work, since when the site is accessed with the www, and the domain is not registered with that sub-domain, it will give a error.

The solution is to check if you have the exact opposite of my htaccess suggestion (a redirection of non-www to www), you need to remove that and now the non-www will work!
 
Top