[thelist] Cold Fusion question: URL with ? to search engine friendly URL

Warden, Matt mwarden at odyssey-design.com
Tue Apr 17 16:43:07 CDT 2001


> To get search engines to follow a link, you need to replace the question
> mark with a virgule (forward slash), and *possibly* replace equals signs
> with virgules or underscores.
>
> If you have a URL of www.mydomain.com/april/seventeenth.cgi/1/2/3
> then the server will execute /april/seventeenth.cgi and put '1/2/3' into
> the environment variable PATH_INFO

You can go a step beyond that by playing with the file handlers for a
particular folder and getting rid of the ".cgi". As you'll notice, there is
no extension on the evolt site (well... there is, but it's... ummm... fake
=)

So, it'd look like this:

www.mydomain.com/april/seventeenth/1/2/3

and you can plop another querystring var at the end to make it look like a
static file named index.html, when in actuality the file is seventeenth.cgi:

www.mydomain.com/april/seventeenth/1/2/3/index.html




thanks,


--
mattwarden
mattwarden.com





More information about the thelist mailing list