question for htaccess gurus
Posted: Wed Nov 22, 2006 10:50 am
using some cheap hosting for a friends site, and in typical "get what you pay for" fashion, the server is playing silly buggers with what i guess is an apache configuration error. php files are being offered up for download because apache doesn't know what to do with them.
able to upload a .htaccess for the domain, but putting in a proper addhandler line for php just exposes other problems with missing information in the apache php setup. i only ever use htaccess for quite basic stuff (passwords, redirection, url rewriting etc) so am a bit stuck for ideas beyond that.
is there some conditional command i can use in a htaccess that could check if a handler exists and then take some action if it doesn't? like redirecting to another page?
moving to another host isn't an option right now. he's signed into one of those stupid deals where the hosting company owns his domain, so it's going to take at least a few days to organise the move (not doing anything until i can reach a decent contact at the current host).
able to upload a .htaccess for the domain, but putting in a proper addhandler line for php just exposes other problems with missing information in the apache php setup. i only ever use htaccess for quite basic stuff (passwords, redirection, url rewriting etc) so am a bit stuck for ideas beyond that.
is there some conditional command i can use in a htaccess that could check if a handler exists and then take some action if it doesn't? like redirecting to another page?
moving to another host isn't an option right now. he's signed into one of those stupid deals where the hosting company owns his domain, so it's going to take at least a few days to organise the move (not doing anything until i can reach a decent contact at the current host).