You are here: Home Linux Webserver RewriteEngine / RewriteRules
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 463
Total Pages: 284
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 03.02.2012 16:00
 

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]