Jump to content


Photo
- - - - -

If a web page cannot return an error


  • Please log in to reply
3 replies to this topic

#1 pix6ie

pix6ie

    Will I break 10 posts?

  • Members
  • 8 posts
  • Gender:Male

Posted 04 June 2011 - 09:30 AM

Ive noticed this on a few web pages and wondered what it meant, when you go to the home page or login page you can type any directory name into the URL bar and it will always show the same page.
Example:
http://www.example.com/
http://www.example.com/example/
http://www.example.com/example/example 2

All of the above URLs would show the same page as the 1st example.
(These are not meant too be actual links, just the general idea)
If anyone has any advices as to what this means please reply :biggrin:

Edited by pix6ie, 04 June 2011 - 09:31 AM.


#2 nyphonejacks

nyphonejacks

    Dangerous free thinker

  • Members
  • 793 posts
  • Gender:Male
  • Location:718

Posted 04 June 2011 - 11:32 AM

Ive noticed this on a few web pages and wondered what it meant, when you go to the home page or login page you can type any directory name into the URL bar and it will always show the same page.
Example:
http://www.example.com/
http://www.example.com/example/
http://www.example.com/example/example 2

All of the above URLs would show the same page as the 1st example.
(These are not meant too be actual links, just the general idea)
If anyone has any advices as to what this means please reply :biggrin:

domain is probably just forwarded to a different server, in which case the directories would not matter...
when forwarding a domain you can either lock the domain name in the address bar, or show the forwarded address in the bar... my domain is forwarded to a blogspot address... but i have the actual address of the page show...

so http://nyphonejacks.com
http://nyphonejacks.com/example
http://nyphonejacks.com/example2
all go to the same page on the forwarded domain...

i could be wrong.. it is possible that they may have set their 404 page up to redirect to the main directory..

#3 pix6ie

pix6ie

    Will I break 10 posts?

  • Members
  • 8 posts
  • Gender:Male

Posted 05 June 2011 - 08:22 AM


Ive noticed this on a few web pages and wondered what it meant, when you go to the home page or login page you can type any directory name into the URL bar and it will always show the same page.
Example:
http://www.example.com/
http://www.example.com/example/
http://www.example.com/example/example 2

All of the above URLs would show the same page as the 1st example.
(These are not meant too be actual links, just the general idea)
If anyone has any advices as to what this means please reply :biggrin:

domain is probably just forwarded to a different server, in which case the directories would not matter...
when forwarding a domain you can either lock the domain name in the address bar, or show the forwarded address in the bar... my domain is forwarded to a blogspot address... but i have the actual address of the page show...

so http://nyphonejacks.com
http://nyphonejacks.com/example
http://nyphonejacks.com/example2
all go to the same page on the forwarded domain...

i could be wrong.. it is possible that they may have set their 404 page up to redirect to the main directory..



That makes sense, even if Im already on the main page I can type the directory names and it wont matter, if the 404 page redirects you to the home page will the URL reset too??

#4 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,095 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 05 June 2011 - 10:33 AM

My experiences with it is limited, but I believe mod_rewrite, can achieve the same results you are describing. The URL in the address bar will be whatever the user put in, but the underlying module will "rewrite" the url, showing what is defined by the webmaster.

EDIT: just google, "mod_rewrite examples" and you'll get the idea.

Edited by tekio, 05 June 2011 - 10:35 AM.





BinRev is hosted by the great people at Lunarpages!