#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    5
    Rep Power
    0
    Is there a way to deny direct linking to pages below the default html home directory? I want to force visitors to come throught my 1st index.html page. I've played around with the mod_access_referer module. Doesn't seem to be what I'm looking for. any insight is greatly appreciated.
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    You should be looking at mod_rewrite -> http://www.apache.org/docs/mod/mod_rewrite.html

    The condition should be checking HTTP_REFERER, if it doesn't match !^http://www.yoursite.com/?$, then send a redirection to http://www.yoursite.com

    Let say someone coming from somewhere to your site, his stats shouldn't be logged twice.

    This is the best I can suggest.

IMN logo majestic logo threadwatch logo seochat tools logo