Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Re: [Alex] avoiding domains to use some templates

Quote Reply
Re: [Alex] avoiding domains to use some templates In reply to
Hello Alex,

I've tried it, but I can't get it work. That's what I wanted and what I've done.

I wanted to protect templates from domain1.com to be used from any other domains using GM.

So I created a global tag named domain_check with the code below.
-------------
sub {
my $tags = shift;
if ($ENV{HTTP_HOST} ne 'domain1.com') {
return '<meta http-equiv="refresh" content="0;URL=http://www.domain.com">';
}
-------------

Then I inserted <%domain_check%> to the head of the template and accessed to GM using a domain diferent from domain1.com (also tried it inserting it to the body). Then I got this piece of text in the body: <meta http-equiv="refresh" content="0;URL=http://www.domain.com>, but nothing happened.

Then I tried accessing it with domain1.com, but I got the same piece of code.

Please, could you give me a hand?

Thanks a lot,

Narcís Vilà


Subject Author Views Date
Thread avoiding domains to use some templates narcis 10962 Oct 29, 2001, 3:54 PM
Thread Re: [narcis] avoiding domains to use some templates
Alex 10649 Oct 30, 2001, 2:58 PM
Thread Re: [Alex] avoiding domains to use some templates
dearnet 10672 Oct 31, 2001, 3:50 AM
Thread Re: [rajani] avoiding domains to use some templates
Alex 10621 Oct 31, 2001, 1:52 PM
Post Re: [Alex] avoiding domains to use some templates
dearnet 10593 Oct 31, 2001, 10:56 PM
Thread Re: [Alex] avoiding domains to use some templates
narcis 10635 Nov 1, 2001, 11:25 AM
Post Post deleted by RedRum
Paul 10604 Nov 1, 2001, 11:30 AM
Thread Re: [narcis] avoiding domains to use some templates
Alex 10568 Nov 1, 2001, 11:31 AM
Thread Re: [Alex] avoiding domains to use some templates
narcis 10601 Nov 1, 2001, 11:59 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10589 Nov 1, 2001, 12:02 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10600 Nov 1, 2001, 12:06 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10584 Nov 1, 2001, 12:13 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10615 Nov 1, 2001, 12:20 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10657 Nov 1, 2001, 12:22 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10597 Nov 1, 2001, 12:24 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10555 Nov 1, 2001, 12:28 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10603 Nov 1, 2001, 12:40 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10551 Nov 1, 2001, 1:02 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10519 Nov 2, 2001, 7:33 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10509 Nov 2, 2001, 7:37 AM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10523 Nov 2, 2001, 11:25 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10568 Nov 2, 2001, 11:54 AM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10536 Nov 2, 2001, 1:42 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10474 Nov 2, 2001, 1:53 PM
Post Re: [RedRum] avoiding domains to use some templates
narcis 10522 Nov 2, 2001, 2:06 PM