Hi, Here is some code i wrote.. I was wondering if there was somethign wrong with it? i have tested it.. and i get a 500 error :(
RewriteEngine On RewriteCond %{HTTP_HOST} !^www.domain-they-come-from.com [NC]RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} ^domain-they-come-from.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) www.main-domain-name.com/form.php?{HTTP_HOST} [R,L]
Kunal
Add these lines to your httpd.conf
RewriteLogLevel 0 RewriteLog "/PATH_TO_APACHE/apache/logs/apache-rewrite.log"
and then try to debug.
ideally you should not be getting status 500 coz' of mod_rewrite.
Do u have some thing else running behind apache, where your requests get transferred ? hth, shuks
-----Original Message----- From: linuxers-admin@mm.ilug-bom.org.in [mailto:linuxers-admin@mm.ilug-bom.org.in]On Behalf Of Kunal Jhunjhunwala Sent: Sunday, July 02, 2000 1:41 AM To: linuxers@mm.ilug-bom.org.in Subject: [ILUG-BOM] mod_rewrite
Hi, Here is some code i wrote.. I was wondering if there was somethign wrong with it? i have tested it.. and i get a 500 error :(
RewriteEngine On RewriteCond %{HTTP_HOST} !^www.domain-they-come-from.com [NC]RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} ^domain-they-come-from.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) www.main-domain-name.com/form.php?{HTTP_HOST} [R,L]
Kunal
_______________________________________________ Richard Stallman's Public Lecture 5pm 17th July, at TIFR. Linuxers mailing list Linuxers@mm.ilug-bom.org.in http://mm.ilug-bom.org.in/mailman/listinfo/linuxers