There is more than one solution for this problem.
Here's one.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com$1 [R=301,L]
-- Simone
bits.abhinav wrote:
>
> Hi all,
> I want to implement a 301 redirect on my portal so that domain.com
> redirects to www.domain.com. I don't have much knowledge about the
> mod_rewrite module of Apace. I found out the code for this online but it
> doesn't work properly. If anyone has done this before or knows how to do
> it please help me out.
>
> Thanks
>
--
View this message in context:
http://www.nabble.com/301-Redirect-tp21514435p21514713.html
Sent from the Zend Framework mailing list archive at Nabble.com.