...

View Full Version : .htaccess query



bigc
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?

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

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

_Aerospace_Eng_
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.

bigc
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum