PDA

View Full Version : Redirecting Bookmarkers........


Muff
07-20-2001, 07:21 PM
Can someone give me a hand finding a code or htaccess code that will:

If the user bookmarks a gallery the url or page will be redirected when they click there bookmark to say my main page. or it will set a specific url instead of the one they bookmark.

Thanks.

'Plat
07-20-2001, 07:24 PM
Muffy whats ur icq? I used to have it but i dun know where it go :c(

Muff
07-20-2001, 07:54 PM
92044377

You just ICQ ed me but I lost you in my list. message me again.

Muff
07-20-2001, 08:08 PM
I have to head out.

Leave me a way to contact you or mail me at

webmaster@xxxlinkcafe.com

thanks

William
07-21-2001, 02:04 AM
<a href="yourfrontpage.html" "LANGUAGE="vbscript" onClick="window.external.AddFavorite 'http://www.yourdomain.com/', 'Description for your site here'">Add To Favorites</a>

Is this what you want?

Muff
07-21-2001, 02:50 AM
No.

Im looking for a way; that if a user bookmarks instead of the gallery url it will bookmark my my main page.

William
07-21-2001, 04:00 AM
Ah ok. I meant for the redirection not different bookmark.

William
07-21-2001, 04:22 AM
Oh sorry didn't read your post fully. Now I understand what you want. You would use a script to redirect visitors who has an empty $HTTP_REFERER string. This can cause some problems with the gallery reviewers since they most likely will not have a referer value because of different circumstances, but if you use the script when the galleries are approved this would work fine.

<?
if(empty($HTTP_REFERER)){
header("Location: http://www.yourdomain.com/
}
?>
(Place at the very top of your gallery files, above the HTML)

This is the simplest way of doing it, if you need I can write a script that checks the last-edited date value on the gallery file and only start the script after 2-3-4 whatever days so you don't get blacklisted for redirecting the gallery reviewers.

William
07-21-2001, 04:23 AM
Sorry, the board filter my code.

<?
if(empty($HTTP_REFERER)){
header("Location: http://www.yourdomain.com/ ");
}
?>

Muff
07-21-2001, 08:46 AM
Thanks william.

But that would probably cause alot of problems.