Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: .htaccess query

  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess query

    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?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Kinda like an advertisement?

  • #3
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, like an advertisement.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.

  • #5
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •