But will this work with the Rewrite rules for Zend Framework?
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
I tried adding this code below the above code but it takes me to
www.domain.com/index.php which then messes up with the relative URLs in the
code.
Simone Carletti wrote:
>
> 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-tp21514435p21515215.html
Sent from the Zend Framework mailing list archive at Nabble.com.