View Full Version : .htaccess query

12-22-2005, 03:44 AM
I wasn't sure where exactly to post this, so I'm just going to post it in the HTML section.

Alright, basically what I want to know is if tehre is some sort of .htaccess code i could use on a domain so that a certain file is shown in the header and/or footer of any subdomain?

So, for example I added this code and made it include a file Pageheader.php into every subdomain, with the contents I am a test file in it, if i hosted someone as a subdomain, it would show up as "I am a test file" then the rest of their page?

also, if this is possible, would there be any way to set what subdomains are exempt from this?

12-22-2005, 04:29 AM
Kinda like an advertisement?

12-22-2005, 06:09 AM
yes, like an advertisement.

12-22-2005, 06:19 AM
If you give your users ftp access to their subdomain then you will need to go with some other type of server side language because an htaccess file can easily be deleted through ftp, I'm not sure how to even get an htaccess file to show files on a page.

12-22-2005, 01:52 PM
well in response to the first part of your question, the htaccess would (preferably) be located on the domain giving the hosting, so the subdomain users could not touch it.