RewriteEngine / RewriteRules
by
Wyden Silvan
—
last modified
26.01.2010 15:53
Activate Rewrite Engine:
RewriteEngine On
Rewrite everthing to https:
rewritecond %{https} off
rewritecond %{REQUEST_URI} ^login\.php$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Transparent Proxy (redirect everything transparent):
RewriteRule ^(.*)$ http://mysecretdomain.com/$1 [L,P]
or with plone:
RewriteRule ^/(.*) http://localhost:8081/VirtualHostBase/http/%{HTTP_HOST}:80/mypage/mypage/VirtualHostRoot/$1 [L,P]
Redirect only domain/stast/:
RewriteRule ^/stats/(.*) http://localhost/cgi-bin/awstats.mydomain.ch/awstats.mydomain.pl/$1 [L,P]
