Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9-z\-.]+)?domain\.com$ [NC]
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteRule .? http://www.%1domain.com%{REQUEST_URI} [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement