Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 29

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 29

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 29

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 29

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 29
redirecting users coming from a specific site only?
Results 1 to 5 of 5

Thread: redirecting users coming from a specific site only?

  1. #1
    Join Date
    Jan 2002
    Posts
    22
    Rep Power
    0

    redirecting users coming from a specific site only?

    Is there a way using JavaScript or something to redirect users coming to a page on my site from a specific website? Basically, another site out there has linked an odd page on my site and their users enter my site this way. I'd like to force anyone coming from that specific site and using that link to be redirected to my index page? Is this feasible???

    Thanks for your help!

  2. #2
    Join Date
    Nov 2002
    Posts
    33
    Rep Power
    0
    The only thing I can think of right now is to upload a .htaccess file into the directory where the link is. The .htaccess should contain something like DirectoryIndex /
    . This would allow any visitors that go to a page that does not exist to be redirected to your main index page.

    If you have another index file inside that directory, then you will have to add it into the .htaccess file also. Like, DirectoryIndex / index.html index.php


    Another way is to setup a 404 error to redirect to the main page.
    Last edited by aiweller; 21-05-2003 at 10:30 AM.
    Ashley Weller
    Host247.com
    KLGlobal.NET
    Not Just Ordinary Features

  3. #3
    Join Date
    Jan 2002
    Posts
    22
    Rep Power
    0
    well, the page they are accessing is not an error page, it's a valid page on the site but they shouldn't be hitting it without going through the entrance of the site.

  4. #4
    Join Date
    Nov 2002
    Posts
    33
    Rep Power
    0
    aha... I understand now!! Here's the code for .htaccess to do this;

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://www.referingurl.com/
    RewriteRule /* http://www.yoursite.com/ [R,L]
    Ashley Weller
    Host247.com
    KLGlobal.NET
    Not Just Ordinary Features

  5. #5
    Join Date
    Jan 2002
    Posts
    22
    Rep Power
    0
    hey, thanks! I'll try that too. I actually found a work around in the meantime. The site linking us does it within a frameset so I just place a script on my page forcing the page to reload (to my index page) if it originally is loaded from within a frameset. That seems to work fine at least until they stop linking me from within a frameset.

    If anyone needs a script like I described try this;

    <script>

    if (window!= top)
    top.location.href=document.location.href = 'index.html';

    </script>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. No CMS Specific Forum/Topic?
    By hatosan in forum FeedBack & Suggestion
    Replies: 1
    Last Post: 01-12-2007, 11:20 PM
  2. any Penangfon users?
    By seraphangel in forum Mamak Stall
    Replies: 0
    Last Post: 30-04-2007, 04:42 PM
  3. Streamyx users
    By Ainuddin in forum Mamak Stall
    Replies: 1
    Last Post: 01-02-2006, 05:13 PM
  4. redirecting
    By rix in forum Website Programming
    Replies: 2
    Last Post: 17-06-2004, 05:06 PM
  5. A site specially made for malaysian broadband users..
    By NeoKirana in forum Mamak Stall
    Replies: 9
    Last Post: 10-02-2004, 11:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36