Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Danny267 webforumsuser@macromedia.com #1
Re-directing outsiders to a universal URL
What code is to be placed in a page so that visitors from a url outside of my domain will be automatically transferred to a universal start page (eg. index.htm)? I'm sure it is easy but cant work it out. Thanks for your help.
Danny267 webforumsuser@macromedia.com Guest
-
Acrobat 8 Universal?
There's some confusion about the new Acrobat 8 on some of the Mac forums. The system requirements list "G3, G4 or Intel processors", but no mention... -
Flash 9 universal binary help!
I've recently installed the universal flash 9 download, and it has no taken effect. When trying to view Flash a quicktime question mark/logo... -
Re-directing a page to a different address based on acriteria
Hello All, I created an update page that once the user made the necessary changes and click the update button that record would drop-off from the... -
Directing Domains
Hi, I have never used ASP in my life so I NEED HELP!!! I have heard it is possible to create an asp script that when someone connects to a web... -
Directing server php return page
How do I have the server-side php script open up a new client window, rather than having it return to the client page that invoked the php script in... -
Troyan #2
Re: Re-directing outsiders to a universal URL
ASP:
If Request.ServerVariables("HTTP_REFER") = "" Then
Reponse.Redirect "index.htm"
End If
PHP:
if ($_SERVER['HTTP_REFERER') == '') { header('location: index.htm'); }
JavaScript:
<script type="text/javascript">
if (window.location.referer == '') this.document.location.href='index.htm'; }
</script>
--
- Troyan <dnunes@email.com>
Troyan Guest
-
mick_white #3
Re: Re-directing outsiders to a universal URL
Javascript:
if(!document.referrer){location="index.htm";}
Note the spelling of "referrer", and the references.
Mick
Troyan wrote:> ASP:
> If Request.ServerVariables("HTTP_REFER") = "" Then
> Reponse.Redirect "index.htm"
> End If
>
> PHP:
> if ($_SERVER['HTTP_REFERER') == '') { header('location: index.htm'); }
>
> JavaScript:
> <script type="text/javascript">
> if (window.location.referer == '') this.document.location.href='index.htm'; }
> </script>
>
>
> --
> - Troyan <dnunes@email.com>
>
>mick_white Guest
-
rob :: digitalburn #4
Re: Re-directing outsiders to a universal URL
Does this work when the user's followed an external link to the page, such
as from a search engine?
mick_white wrote:> Javascript:
>
> if(!document.referrer){location="index.htm";}
>
> Note the spelling of "referrer", and the references.
> Mick
rob :: digitalburn Guest
-
rob :: digitalburn #5
Re: Re-directing outsiders to a universal URL
Hum, according to DW's JS referrence, it doesn't - it says the string is
filled any time a user follows a link to the page, and I assume that
includes external links. I guess you can just do a string comparison to see
if it's internal or external though.
rob :: digitalburn wrote:> Does this work when the user's followed an external link to the page,
> such as from a search engine?
>
>
> mick_white wrote:>> Javascript:
>>
>> if(!document.referrer){location="index.htm";}
>>
>> Note the spelling of "referrer", and the references.
>> Mick
rob :: digitalburn Guest



Reply With Quote

