On Oct 4, 2:24 pm, "Hermann Kaser" <[EMAIL PROTECTED]> wrote:
> I do, and that should at the very least redirect the www's to the
> class C domain.
> You can try using RewriteLog and RewriteLogLevel in your Apache to
> debug this kind of stuff, it's what I've used before to solve rewrite
> issues.
>
> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog
>

I tried putting in a rewrite directive like this but now I get a
server error.  Any ideas?

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

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /
  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
RewriteLog "/home/shared/utilitymill/public_html/utilitymill.com/temp/
rewrite.log"

-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