Forum Moderators: phranque

Message Too Old, No Replies

mixing addtype and a 301 redirect

apache no likey?

         

ncreegan

4:38 am on Apr 30, 2005 (gmt 0)

10+ Year Member



AddType application/x-httpd-php .php .php3 .html .htm
RewriteCond %{HTTP_HOST}!^www\.example\.com
RewriteRule (.*) [example.com...] [R=301,L]

what are my tired eyes not catching here? I'm getting a pretty garbled server on every load...

thanks in advance...

jd01

4:42 am on Apr 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If that's your entire file it looks like you're missing:
RewriteEngine on

You might also try adding a line space between Type and Cond.

Justin

[edited by: jd01 at 4:44 am (utc) on April 30, 2005]

ncreegan

4:43 am on Apr 30, 2005 (gmt 0)

10+ Year Member



rw was in there, but the space worked like a charm...

thanks much

jd01

4:54 am on Apr 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Edited: found the answer while I was typing.

Glad it worked.

Justin