Hey, I noticed my hosting plan has an 'Entropy Banner' feature where it randomly displays banners/images, with certain images at set to display more often than others. My website has a .HTML template that this code would have to go on, but the only problem is, I can't change the extension to .SHTML (which is says it MUST have) because there are over like 60 different PHP pages set to include "header.html"...I can't possibly go into all these files and change it to .shtml (actually, I just don't want to). Is there any way I can still mimic this feature so I can use it on a .HTML page? Basically, I just want to have little advertisements/banners that display at random times on this one section of my website. Thanks
Add this line to your .htaccess file, XBitHack on Then, use chmod to make the file executable. chmod +x <filename> No need, then, to change the filename extension. cheers, gary
Sorry, I'm a bit of a n00b, but using the pages I have below, can you sort of explain using ur examples and mathcing it to the appropriate files? - .htaccess file - where is this? What folder...just public_html/? And what exactly I am adding? Any specific area of the file? "XBitHack on" - Header.html is the file that I need to banner code on. So I go into my FTP and CHMOD THIS file to "executable"? Then, when I go back into my Site Admin and use the entropy banner feature, it should just work?
1) read this: http://httpd.apache.org/docs/1.3/configuring.html#htaccess 2) Yep, that's it. cheers, gary
hmm, it didn't seem to work when I placed the code in...my htaccess file had 3 lines of code, so I just added another line.