Re: Random Design Question
- From: "Alex" <cook@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: 16 Aug 2006 22:45:30 -0700
Hey Mark:
Thanks for the reply. The mod_rewrite seems real powerful and useful.
I appreciate the response and plan to implement it using mod_rewrite.
Thanks!
mark.fabrizio@xxxxxxxxx wrote:
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...
.
- Follow-Ups:
- Re: Random Design Question
- From: Alex
- Re: Random Design Question
- References:
- Random Design Question
- From: Alex
- Re: Random Design Question
- From: mark . fabrizio
- Random Design Question
- Prev by Date: Re: Random Design Question
- Next by Date: Re: Random Design Question
- Previous by thread: Re: Random Design Question
- Next by thread: Re: Random Design Question
- Index(es):
Relevant Pages
|