Re: Random Design Question



There are a couple options to do such a thing:

1 - You could use apaches mod_rewrite module to redirect requests to
http://<server_name>/%1 to /index.php?name=%1 - look up mod_rewrite
for more resources on that.

2 - You could use javascript to dynamically change the end of the url
to something with #Appollo at the end... you might want to check the
dojo library as it has this kind of functionality built in for its ajax
library

Good luck-
Mark

Alex wrote:
This is something that is pretty random.

I want to make links on a web site that don't really exist... and then
allow a custom script to go to a certain page depending on the
structure of the URL in the address bar of the user's browser.

For example, I might have a user on a web site, with a user name called
"Apollo".

I want to create a link to that user's profile (like
http://www.mywebsite.com/Apollo ) without actually creating the Apollo
directory...

I know that I could do something like
http://www.mywebsite.com?user=Apollo

but I want to have something more advanced and easier to write on a
paper advertisement, like the above URL.

Is this something I would have to modify the custom error pages with,
since /Apollo wouldn't exist?

The only way I can think of doing it is programatically creating those
directories when needed... and making an index.php file inside each
directory.

I know this is a random question but I thought I'd throw it out there
and see if anyone can help.
Thanks...

.



Relevant Pages

  • Re: Random Design Question
    ... I appreciate the response and plan to implement it using mod_rewrite. ... I want to make links on a web site that don't really exist... ... allow a custom script to go to a certain page depending on the ...
    (php.general)
  • Random Design Question
    ... I want to make links on a web site that don't really exist... ... allow a custom script to go to a certain page depending on the ... Is this something I would have to modify the custom error pages with, ...
    (php.general)