# 404 get URL of page

**URL:** <https://forum.kirupa.com/t/404-get-url-of-page/150748>\
**Category:** programming\
**Created:** [June 10, 2005, 1:43am UTC](https://forum.kirupa.com/t/404-get-url-of-page/150748 "2005-06-10T01:43:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NANO3](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NANO3](https://forum.kirupa.com/u/NANO3)\
**Post date:** [June 10, 2005, 1:43am UTC](https://forum.kirupa.com/t/404-get-url-of-page/150748/1 "2005-06-10T01:43:51Z")

</div>

how do i get the URL of the page that the person tried to access on the 404?

such as

[http://google.com/niraj](http://google.com/niraj)

look at that page and notice the url

the url is still [google.com/niraj](http://google.com/niraj)

and the page says

/niraj could not be found…
