Hello, El jue, 04-02-2010 a las 18:09 -0500, Josh Trier escribió: > Hello > > > Is there anyway to serve a file without using the extension? Example: > search?q=data&var2=data2, where search.php would reside in document > root. Currently it gives a 404. Apache2 handles this with mod_alias > and lighttpd has mod_magnet for this. > > > I'm assuming you have to use rewrites, but I can not get this to work. > I got as far as getting the page to load, but variables do not > follow..
You're right, you can use a regex rule, ie. /search.* with the handler type internal with regex /search(.*)$ and substitution /whatever_search.php$1 I suppose you have to be careful with this regex rule not interfering the php extension rule (/search.php matches /search.*). I guess /whatever_search.php would still be accessible, I don't know if you can avoid it by means of the internal redirection. Regards, Juanjo -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ ramble on: http://rambleon.usebox.net/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
