Click to See Complete Forum and Search --> : Parsing a URL w/o ForceType directive


kouki0196
02-22-2005, 01:43 PM
Is it possible to parse a URL so that it is more search engine friendly without using a ForceType Apache directive? The reason I ask is because my ISP doesn't support that directive due to security vulnerabilities.

If someone can point me in a direction to a script or tool that does this, I would be most appreciative.

Thanks,

-k

Jona
02-22-2005, 01:44 PM
Maybe use Apache's mod_rewrite instead?

kouki0196
02-22-2005, 01:47 PM
Originally posted by Jona
Maybe use Apache's mod_rewrite instead?

Nope. Not supported either.

Jona
02-22-2005, 01:47 PM
Originally posted by kouki0196
Nope. Not supported either.

And this is your ISP, not your web host? Er, I've never heard of an ISP disabling that - it would cripple tons of sites that already use those directives...

kouki0196
02-22-2005, 01:54 PM
Originally posted by Jona
And this is your ISP, not your web host? Er, I've never heard of an ISP disabling that - it would cripple tons of sites that already use those directives...

Sorry... I mean Web host. They basically indicate that any directive not in their list (below) is not supported:

[sent you a PM instead :P]

Jona
02-22-2005, 02:15 PM
If you don't use an Apache module such as mod_alias, mod_rewrite (preferred), forcetype or something similar, then you'll have to have a querystring for your PHP script to parse the URL. You can use page?var1=value;var2=value or something (your own parsing method), but it will be verbose until you get an Apache module to let you use slashes (page/value/value, for example). I would suggest getting a new host, because as far as I'm aware there are no security problems with these modules.

kouki0196
02-22-2005, 05:53 PM
Hey Jona,

Thanks for your help on this. My hosting provider will probably update it, just not now. I've found a solution that will work, although it's not pretty:

/file.php/path/path ... etc...

oh well. At least search engines won't have a problem with that, which was the whole goal in the first place :)

-k