Forum Moderators: phranque
Using mod-rewrite i am trying to redirect following
[mydomain.com...] to above page.
HTTPD Congfiguration as below
RewriteEngine on
RewriteCond %{HTTP_HOST} (www.mydomain.com)
RewriteRule ^/redirect/index.html /cgi-bin/test.pl [L]
Problem :
Redirect is working .. when i say [mydomain.com...] , i am gettn redirected to [mydomain.com...] But instead of showing values like host details,http_cookie and so on . It shows me the test.pl code directly in page...
Am i missing something..?
PERL:
print "Content-type: text/html\n\n";
You can use the "Live HTTP Headers" add-on for Firefox or other Mozilla-based browsers to verify this.
Jim
when i hit [mydomain.com...] , i can see response headers as content type :text/html
but when its redirected from [mydomain.com...] , i see response headers as content type : text/plain
Could this be an issue? is there anyway we can force redirect to serve content type: text/html?