Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6643165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:01:05+00:00 2026-05-26T00:01:05+00:00

In PHP I see that $_SERVER[‘HTTP_REFERER’] gives me the refering url if the refering

  • 0

In PHP I see that

$_SERVER['HTTP_REFERER']

gives me the refering url if the refering page had a link that was clicked through to my current page. But what if page A has a htaccess redirect that sends the user to page B. If I have the above snippet on Page B will I get Page A as the referer?

Or does it only work if a user clicks on a link that takes them to page B?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:01:05+00:00Added an answer on May 26, 2026 at 12:01 am

    To begin with: http://php.net/manual/en/reserved.variables.server.php

    The address of the page (if any) which referred the user agent to the
    current page. This is set by the user agent. Not all user agents will
    set this, and some provide the ability to modify HTTP_REFERER as a
    feature. In short, it cannot really be trusted.


    To answer your question:

    Page A will be sent if it is silent rewrite (temporary redirect).

    Page B will be sent if it is a redirect that sends a 301 (permanent redirect).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Typically I use E_ALL to see anything that PHP might say about my code
In PHP, I'm trying to steal a page from the Rails playbook (see 'Using
http://wilwaldon.com/itsbroken/templateleftnav.php As you can see on the left navigation the link for Template 01
I know that you can add rules in htaccess, but I see that PHP
I see this problem on and off again in my PHP coding, and I've
See http://bldd.nl/prototypes/megamenu/test23.php I am stuck with this, if you rollover the submenu navigation you
Since PHP is a dynamic language what's the best way of checking to see
I frequently see, in particular in the PHP world, the following writing if you
You can see my project here - http://www.inluxphoto.com/custom/jsgallery/index.php I am attempting to make the
How would I use the PHP function preg_match() to test a string to see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.