HighDots Forums  

URL access

alt.html alt.html


Discuss URL access in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
1995 Cobra
 
Posts: n/a

Default URL access - 06-09-2008 , 03:44 PM






Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?

thanks.

Reply With Quote
  #2  
Old   
Neredbojias
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 04:07 PM






On 09 Jun 2008, 1995 Cobra <mg (AT) deepskystudio (DOT) com> wrote:

Quote:
Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?
Sounds like you're trying to make something out of nothing...

Seriously, if there were a file called "something", you'd, uh, have
something. If no such file exists, how would you know were you to
incorporate what you suggest?

--
Neredbojias
http://www.neredbojias.net/
Great sights and sounds


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 04:44 PM



Scripsit 1995 Cobra:

Quote:
Hey all, not sure if this is a stupid question or not,
There are no stupid questions, just...

Quote:
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
No, because host www.nameofmysite.com does not exist. Use the .example
convention if you must avoid using real URLs.

Quote:
Is there though a way to utilize that to work w/out creating a
directory called "something?"
Of course. A URL need not correspond to any directory or any file.

Quote:
For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?
You haven't decided what you really want to do, have you? Or you just
don't want to reveal it to us. Too bad, because this _sounds_ like a
feeble attempt at creating some phishing.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #4  
Old   
1995 Cobra
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 05:05 PM



On Jun 9, 5:44*pm, "Jukka K. Korpela" <jkorp... (AT) cs (DOT) tut.fi> wrote:
Quote:
Scripsit 1995 Cobra:

Hey all, not sure if this is a stupid question or not,

There are no stupid questions, just...

If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."

No, because hostwww.nameofmysite.comdoes not exist. Use the .example
convention if you must avoid using real URLs.

Is there though a way to utilize that to work w/out creating a
directory called "something?"

Of course. A URL need not correspond to any directory or any file.

For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?

You haven't decided what you really want to do, have you? Or you just
don't want to reveal it to us. Too bad, because this _sounds_ like a
feeble attempt at creating some phishing.

--
Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/
Nevermind. I love it when someone looks for a little help and they get
responses like these two instead. Have a nice day.


Reply With Quote
  #5  
Old   
Neredbojias
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 06:14 PM



On 09 Jun 2008, 1995 Cobra <mg (AT) deepskystudio (DOT) com> wrote:

Quote:
Nevermind. I love it when someone looks for a little help and they get
responses like these two instead. Have a nice day.
Yeah, hehe, it's almost as good as when a petitioner posts a question as is
too stupid to understand the answers.

--
Neredbojias
http://www.neredbojias.net/
Great sights and sounds


Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 06:15 PM



1995 Cobra wrote:
Quote:
Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something
Well as you should be aware of now, don't use a possible REAL url, but

www.example.com/something

Quote:
They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?

and I thing the answer is yes, you can make

www.example.com/something

equal to

www.example.com/someScript.cgi?something.

Often done with mod_rewrite and .htaccess files on Apache servers to
present human and search engine friendly URLs for database driven sites

www.example.com/articles/2005/06/01/foo

equal to

http://www.example.com/findArticleSc...01&to pic=foo


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #7  
Old   
Martin Jay
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 07:03 PM



On Mon, 9 Jun 2008 13:44:33 -0700 (PDT), 1995 Cobra
<mg (AT) deepskystudio (DOT) com> wrote:

Quote:
Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?
Not in HTML. But it could be done at server level by, for example,
using rewrite rules on an Apache server:
<http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html>.
--
Martin Jay


Reply With Quote
  #8  
Old   
richard
 
Posts: n/a

Default Re: URL access - 06-09-2008 , 09:44 PM



On Mon, 9 Jun 2008 13:44:33 -0700 (PDT), 1995 Cobra
<mg (AT) deepskystudio (DOT) com> wrote:

Quote:
Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?

thanks.

Learn about "redirect".
There are ways so that if a dreaded "404" error occurred, you could
send the user to a certain page that does exist.


Reply With Quote
  #9  
Old   
David Segall
 
Posts: n/a

Default Re: URL access - 06-10-2008 , 04:11 AM



1995 Cobra <mg (AT) deepskystudio (DOT) com> wrote:

Quote:
Hey all, not sure if this is a stupid question or not, but here goes.
If someone were to type this into there URL bar:

http://www.nameofmysite.com/something

They would get an error as there is no directory called "something."
Is there though a way to utilize that to work w/out creating a
directory called "something?" For instance, if they typed that in they
would be directed to a page that used "something" as though it were a
querystring (without typing the "?")?
There is, but it requires processing on the server. Servers provide a
way of directing an error, in this case 404, to a page you choose.
That page can contain code in a your favourite web processing language
such as PHP, Perl or Java to interpret the URL and return HTML code to
the user. TinyURL <http://www.tinyurl.com> uses this technique to
transform a "tiny URL" into the real URL that it has stored in its
database.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.