Re: Changing default PHP path?
not really, htacess is the quickest cleanest way to do it...
the Ht access file is an extension to the httpd file, you could edit this main file, (assuming that you had permission).
but it's much simpler, faster and cleaner to use a .htacess file.
what I would say is that if you use a lot of domains, or are constantly buying new domains, it might be better to build your own script to have the domains made and the .htaccess file added automatically.
there is a diabolical method that I stumbled upon that uses the httpd.conf file to use a different directory for an virtual host subdomain
include "/hosts/domains/*.conf" to add a series of conf files, (though this requires a restart each time a new confi file is used, and in that respect is no netter than your existing method.
another idea is to use
then put allt he other stuff that you want here.
in that directory you now need a php script to forward to your proper files for that address...
without root access I doubt you'll be able to change the httpd.conf file.
it's so unlikely it's laughable that you'll get any admin to implement what I wrote above, it's so flakey that it's ridiculous, and if the admin did imlement it, in all seriousness I'd probably switch hosts!
with the level of accesss that you have, and assuming that your PHP script works perfectly...
I'd keep doing exactly what you are doing.
if adding htaccess files is getting to be a drag, then write a dashboard program to do it for you.
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."