send www to non-www?
- uglyeoin
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
12 years 2 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
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.
- Saka
- Offline
- Administrator
12 years 2 months ago - 12 years 2 months ago #6725
by Saka
Emir Sakic
www.sakic.net
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]
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
Last Edit: 12 years 2 months ago by Saka.
Please Log in or Create an account to join the conversation.