-1

I need to redirect all traffic like the following:

mydomain.com/a/b/c => www.mydomain.com/a/b/c

All url info should be reserved and only domain is modified.

Thanks.

Sam

Sam Kong
  • 5,172
  • 8
  • 49
  • 87

1 Answers1

1

Something like:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mudomain.com[nc]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
Bruno Lowagie
  • 73,590
  • 10
  • 107
  • 159