Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 14, 2005, 7:45 pm
rate this thread
I currently have a dictionary.
A user enters a word (say, desk) in the "word" box and gets to
I want to change them and get them to
I already have mod_rewrite supporting such URLs. What I need is
Such as (making it up)
onButtonClick ( go to page "http://www.cooldictionary.com/word ." +
word + ".html" );
And lo, Ignoramus21798 didst speak in alt.www.webmaster:
Don't. Just make "/index.mpl?word=desk" forward you to "/word.desk.html"
using a Location header. People will still be able to just type
"/word.whatever.html" to get a definition, but also
"/index.mpl?word=whatever" will give the same result. Don't complicate
things with a client side script.
While you're at it, drop the .html from your redirected URI.
"http://www.cooldictionary.com/word.desk " looks much cleaner.
 Or if index.mpl is your word-info workhorse, rename it something else
and have change the rewrites for "/word.whatever.html" to point to it.
Your users never need to see the name of this file. Then index.mpl can be
your simple Location director.
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com/ringmaker - Orca Ringmaker: Host a web ring
from your website!
- » looking for host where we can run a custom spam filter
- — Next thread in » Webmaster Forum