.htaccess more than one command

Posted by Stefan on Stack Overflow See other posts from Stack Overflow or by Stefan
Published on 2010-05-15T18:21:04Z Indexed on 2010/05/15 18:24 UTC
Read the original article Hit count: 362

Hey I have an .htaccess file with the following code:

<Files ~ "item|profile|category|search">
ForceType application/x-httpd-php
</Files>

What I want is to add a re-write rule as well which changes any body who navigates tot he site ot use http://www.domain.com sintead of http://domain.com

I have the code stored somewhere else for it however I can't seem to just place in the file as it corrupts? Or just doesn't work... I wish I knew more about .htaccess files

How can I add this in?

Thanks,

Stefan

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about url-rewriting