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 10875 Oct 29, 2001, 3:54 PM
Thread Re: [narcis] avoiding domains to use some templates
Alex 10563 Oct 30, 2001, 2:58 PM
Thread Re: [Alex] avoiding domains to use some templates
dearnet 10585 Oct 31, 2001, 3:50 AM
Thread Re: [rajani] avoiding domains to use some templates
Alex 10534 Oct 31, 2001, 1:52 PM
Post Re: [Alex] avoiding domains to use some templates
dearnet 10507 Oct 31, 2001, 10:56 PM
Thread Re: [Alex] avoiding domains to use some templates
narcis 10548 Nov 1, 2001, 11:25 AM
Post Post deleted by RedRum
Paul 10518 Nov 1, 2001, 11:30 AM
Thread Re: [narcis] avoiding domains to use some templates
Alex 10481 Nov 1, 2001, 11:31 AM
Thread Re: [Alex] avoiding domains to use some templates
narcis 10515 Nov 1, 2001, 11:59 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10502 Nov 1, 2001, 12:02 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10514 Nov 1, 2001, 12:06 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10496 Nov 1, 2001, 12:13 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10528 Nov 1, 2001, 12:20 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10571 Nov 1, 2001, 12:22 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10510 Nov 1, 2001, 12:24 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10469 Nov 1, 2001, 12:28 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10517 Nov 1, 2001, 12:40 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10465 Nov 1, 2001, 1:02 PM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10432 Nov 2, 2001, 7:33 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10423 Nov 2, 2001, 7:37 AM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10437 Nov 2, 2001, 11:25 AM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10480 Nov 2, 2001, 11:54 AM
Thread Re: [RedRum] avoiding domains to use some templates
narcis 10450 Nov 2, 2001, 1:42 PM
Thread Re: [narcis] avoiding domains to use some templates
Paul 10387 Nov 2, 2001, 1:53 PM
Post Re: [RedRum] avoiding domains to use some templates
narcis 10436 Nov 2, 2001, 2:06 PM