Forum Moderators: phranque

Message Too Old, No Replies

Catching Those That Link In

Appache RegEx to Cat Deep Link-Ins?

         

carfac

3:43 pm on Aug 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey Jim!

Is there a quick and easy regex I can use to catch thoise that link directly into deep content pages, but will leave those just browsing around my site alone? I just linked into deep content (from a link in an article on this site) and had to see a full page ad-splash before getting to the content- thought I might look at doing the same.

Here is a rough idea of the syntax of a deep page:

[Mysite.com...]

where "KEYWORD" is the same word for all links, ID_NUMBER is a unique number for each content page, and Keyword_string is basically the title of the page, and generally pretty unique.

Thanks!

Dave

jdMorgan

5:26 pm on Aug 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only way I know of to do this is to detect the linker (by HTTP_REFERER) in a RewriteCond, and redirect the linked page to the desired page for that referrer only.

I've had to do that a couple times when people on forums linked to the wrong page, which left other visitors wondering "What was that link all about?"

Jim