Hi guys,
Here's my current rewrite section of .htacces for my web.py project:
<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>
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]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
But what are the rules for combining Rewrite rules? Nothing seems to
happen when I just put in my own domain and stick it at the top.
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
-~----------~----~----~----~------~----~------~--~---