The ZF rewrite rules will prevent this - have you tried using a custom Router
in the application which if used sets the 301 on the next outgoing response?


scottlively wrote:
> 
> How would you do a 301 redirect like the following?
> 
>  
> 
> http://example.com <http://example.com/>  to
> 
> http://www.example.com <http://www.example.com/>  
> 
>  
> 
> I've tried adding the following to my .htaccess file:
> 
>  
> 
> RewriteEngine on
> 
> rewritecond %{http_host} ^example.com [nc]
> 
> rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc] 
> 
>  
> 
> yet I get 400 Bad Request error.
> 
>  
> 
> Does this need to be done somewhere in the Zend_Controller?
> 
>  
> 
> Thanks,
> 
>  
> 
> Scott Lively
> 
>  
> 
> 
> 


-----
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation - Irish Representative
-- 
View this message in context: 
http://www.nabble.com/301-redirect-tp17803242p17804403.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to