SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    126
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dynamic url dropping ref=

    Hi there,

    I have a URL which uses this:

    http://www.domain.com/page.shtml?ref=myref

    However, when I click on it from an email etc it reverts back to http://www.domain.com/page.shtml and drops the ?ref=

    Is there a reason why this would happen?

    Thanks

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,151
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ebsolutions View Post
    Hi there,

    I have a URL which uses this:

    http://www.domain.com/page.shtml?ref=myref

    However, when I click on it from an email etc it reverts back to http://www.domain.com/page.shtml and drops the ?ref=

    Is there a reason why this would happen?

    Thanks
    Do you have any rewrite rules defined in an htaccess file? Or any logic in your shtml that may cause it to redirect after the ref is found?

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,653
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    cp,

    Good thinking! Actually, the rewrite rule would be creating a new (blank?) query string so targeting the offending code should be easy ... if the OP will show his .htaccess file.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


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
  •