Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

greetings all, i have multi sub-domain on my , i need to redirect www.* to *

ex: to http ://

any ideas how to do so ?

share|improve this question

1 Answer 1

You can do it with mod_rewrite:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

Before using it, make sure you have enabled mod_rewrite first.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.