SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2001
    Posts
    439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to track referrer keyword when using htaccess

    Hi guys,
    I have my php site with the usual htaccess setup, so that i can use urls like: /article/name

    however, how does one go about tracking a keyword variable with this setup....

    because if i try using: /article/name?kw=whatever
    or: /article/name?q=searchquery

    the url works fine, but i just cant track the kw variable (or whatever the search var might be). I guess that after the .htaccess does its work, the kw variable doesnt seem to exist in a way that i can get its value. Is there a way to do this ??

    thanks in advance

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,481
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)

    query string

    Maybe the $_SERVER["REDIRECT_QUERY_STRING"] variable would work?


Bookmarks

Posting Permissions

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