send www to non-www?

11 years 7 months ago #6724 by uglyeoin
Hi there, perhaps this is a ridiculous question.  I have seen an option to send all non-www addresses to www, however, due to my SSL certificate, I would like to do it the other way around if possible.

Can you tell me if this is possible, and if so, how can I do this?

Regards,
Eoin

Please Log in or Create an account to join the conversation.

11 years 7 months ago - 11 years 7 months ago #6725 by Saka
Hi,

It was possible in 1.5 version, but not in 2.5 one.

You can use .htaccess to do it. I use this code (right after RewriteEngine On):

RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ domain.com/$1 [L,R=301]

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch