Excellent, I finally got it working!

This line
  RewriteCond %{HTTP_HOST} ^www\.utilitymill\.com$ [NC]
Just needed a .* before the $
  RewriteCond %{HTTP_HOST} ^www\.utilitymill\.com.*$ [NC]

My new whole .htaccess which works:

#AddHandler fastcgi-script .py
<Files code.py>
  SetHandler fastcgi-script
</Files>

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www\.utilitymill\.com.*$ [NC]
  RewriteRule ^(.*)$ http://utilitymill.com/$1 [R=301,L]

  RewriteCond %{REQUEST_URI} !.*\.css
  RewriteCond %{REQUEST_URI} !.*\.js
  RewriteCond %{REQUEST_URI} !.*\.txt
  RewriteCond %{REQUEST_URI} !/images/
  RewriteCond %{REQUEST_URI} !/favicon.ico$
  RewriteCond %{REQUEST_URI} !^(/.*)+code.py/
  RewriteRule ^(.*)$ /code.py/$1 [PT]
</IfModule>

<files ".htaccess">
order allow,deny
deny from all
</files>

LimitRequestBody 1048576
Options -indexes

Thanks,

Greg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to