> Now I'd like to add something that will make http://www.domain.com[anything
> else] get permantently redirected to
> http://domain.com[anything else].
>
> I found this code:
> RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]

I've got my rules like this:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^www\.semicir\.cl$ [NC]
RewriteRule ^(.*)$ http://semicir.cl/$1 [R=301,L]

RewriteRule ^/?$ /index.py/ [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)?$ /index.py/$1 [L,QSA]

-- 
Hermann Käser
http://theragingche.com/
http://semicir.cl/user/hermzz

--~--~---------~--~----~------------~-------~--~----~
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