Hi,
I would like to save all my redirects in the syntax "domain.com", alsow when it's www.domain.com/dir/sub/..../blabla.html
So I wrote the following line, but it returns: domain.com/ is some cases. Offcourse I could remove all "/" dor $partner but i think there must be a single line option.
my $partner = '';
$partner = $1 if $ENV{'HTTP_REFERER'} =~ /.*\.([^.]*\.[^.]*)/;
I would like to save all my redirects in the syntax "domain.com", alsow when it's www.domain.com/dir/sub/..../blabla.html
So I wrote the following line, but it returns: domain.com/ is some cases. Offcourse I could remove all "/" dor $partner but i think there must be a single line option.
my $partner = '';
$partner = $1 if $ENV{'HTTP_REFERER'} =~ /.*\.([^.]*\.[^.]*)/;