Is there a way to echo typed or referral URL's to the screen?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • revjjjames@hotmail.com

    Is there a way to echo typed or referral URL's to the screen?

    Hello,

    Is there such a way to echo the URL someone typed on the screen? So,
    if www.someserver.com/something/somefile.php was accessed and because
    of .htaccess permissions re-routed the user someplace else, is there a
    <?php echo [something] ?> to display the original referral URL typed?

    Sincerely,

    Jim

  • frizzle

    #2
    Re: Is there a way to echo typed or referral URL's to the screen?

    Don't know about redirecting by HTaccess, but on a custom 404 for
    instance you could use $REQUEST_URI

    Maybe you can do something with that?

    Comment

    • revjjjames@hotmail.com

      #3
      Re: Is there a way to echo typed or referral URL's to the screen?

      Thank you so much. That did the trick and what I was looking for.

      God bless - R.Jim.

      Comment

      Working...