apache 2 mod_rewrite nothing happens
hey guys, i have a serious problem with my mod_rewrite: (guess what) it won't rewrite what i want it to! :P i hope thats not to ot by the way!!! for one vhost i had to rewrite http->https and it did work after some time of testing regexp's! now i'm trying to rewrite a subdomain name from http://www.testing.dom to http://demo.testing.dom but i can't get it to work! here are the rules: RewriteCond %{HTTP_HOST} ^foo\.testing\.dom$ RewriteRule ^(.*)$ https://foo.testing.dom RewriteCond %{HTTP_HOST} ^www\.testing\.dom$ RewriteRule ^(.*)$ http://demo.testing.dom does anybody have an idea what is going wrong here? i'd be veeeery thankful for any kind of help with this! greetingz luk
On Tue, Feb 22, 2005 at 06:02:02PM +0100, dadirtyluk wrote:
but i can't get it to work! here are the rules:
RewriteCond %{HTTP_HOST} ^foo\.testing\.dom$ RewriteRule ^(.*)$ https://foo.testing.dom
RewriteCond %{HTTP_HOST} ^www\.testing\.dom$ RewriteRule ^(.*)$ http://demo.testing.dom
does anybody have an idea what is going wrong here?
Have you activated rewriting with RewriteEngine on ? yours, Hans Peter -- ///// Quelltext AG -- Professionelle Software-Dienstleistungen // // Hans Peter Wiedau <hpw@quelltext.com>, CEO // // Ostenhellweg 31, 44135 Dortmund, Germany // \\/ fon +49 231 9503750, fax +49 231 9503751 ////\\ Web http://www.quelltext.com
participants (2)
-
dadirtyluk
-
Hans Peter Wiedau