What I was calling overkill was that you were not merely redirecting the foo directory but redirecting it to a file (rather than another directory which would then serve the requested file from within that directory instead of the originally requested directory).
Hmmm, “[DK]” in your signature, eh? I am honoUred!
Read quite a lot about you… Hope you or anyone else can help me here…
I am stuck in a problem. I want to add a footer on all files on my server on Hostgator.com Baby Croc package… But I cannot do it via htaccess. I am not familiar with Linux servers, mostly used Windows till now… This might be done through httpd.conf or php.ini… Don’t know… any help would be highly appreciated? Thanks in advance.
If you don’t have access to .htaccess then you surely won’t have access to httpd.conf or php.ini.
What you’re looking for is the auto-append directive for PHP. It’s not a function of Apache but it is of PHP.
What I would do in your case (other than finding a better host/account) is to use PHP files and include the file you want to append in the footer.php file to close every php script. I typically use modules for html, header, masthead, {content} and footer in my php scripts.
I have access to php.ini and httpd.conf… and even htaccess but I cannot use htaccess for some reasons…
I am looking for a way, so I don’t have to edit each and every file but the footer gets attached to all of them using httpd.conf or php.ini or anything else except htaccess. Let me know, if something like this is possible. Thanks a lot
Let me be more clear on my scenario and may be you have some idea, as you’re a pro…
Lots of people have access to public_html on my server… Only, I have access to the root folder and even there, I cannot play with htaccess due to some reasons… So, now, what I am looking for is someway that I can set-up footer on all my domains inside public_html, you see? If I put it inside, public_html, anyone can remove it and I cannot put htaccess in root folder. I need some other solution. I’ll be really greatful, if you can suggest me a solution to this… Thanks a million in advance…