Tag Archives: Indexes

Preventing access to site directories..

Truly seen this, by testing it myself, on some websites. That is the right way to prevent viewers in addition to guests from about to a directory, like http: //www. yoursite. com/images/, and getting of which basic HTML number page that allows you to browse throught he / she files. I need it it gives a awesome " access denied" site instead I think this is done inside cpanel or anything, just not convinced where… Decide to put an index. html file within the directory. Users are certain to get that page besides seeing the service structure. They will however be capable to directly browse into the images (if many people know the names). Employ. htaccess instead… … provided you’ve got a host that can handle it (i. at the., not a n00b free one). Nicely, n00b hosts might go kiss: banana: ‘s ass. Grr… WHEN I hate n00bs, specially n00b hosts and also n00b scripters… Put this from a. htaccess file throughout whatever directory you’re looking for this to impact: Code: Options -Indexes This spins off auto-indexing, that (apparently) is with by default during your host.. htaccess rules inherit so if you put this with your root HTML directory … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , | Leave a comment

Apache Question

Express my web list is ‘C: /my documents’ and from it I have a new folder called ‘website1′ So to get to it I would type: http: //localhost/website1/ These days, is it doable to edit httpd. conf so I just have to type this specific: http: //localhost/website1 (without the / within the end) With thanks Try: Code: Alias /website1 /website1 (IIRC) That would try to be for one folder while wouldn’t it Think about making it so I do not have to type the / in for any folders Add an alias minus the " /" Maybe you have checked whether UseCanonicalName is placed on In that case, disable it. Sean ie. UseCanonicalName off … around httpd. conf Sean Furthermore check the Crawls… by default the only real default document is definitely index. html, probably have to add in. php,. htm etc for whatever you employ. PS Mine works that way by default (after incorporating in index. php in order to my indexes) WE already did of which And due to all that made it simpler for, I will experiment with these suggestions tommorow. Sean, the item worked great, with thanks.

Posted in Web Design | Tagged , , , , , , , , , | Leave a comment

How to

I want to create 12 plus pages (2 Col) that may have the identical header, footer, in addition to sidebar content. The only thing that will change is a main content. I strive to be able update the sidebar for starters page that could update on many of the pages. How do i do that There are lots of many ways to perform this. So the simple option is merely to use php comprises of, which means you’ll separate out the particular header, sidebar, footer for example. into their own php files (header. php, sidebar. php, footer. php with regard to example). Then have a very page for every one of your 10 web pages, so you could have index. php then please have includes where you wish these parts to seem. Another way could utilize a framework or templating system to attain it, or perhaps a CMS. Howdy, one thing to remember. Be careful regarding not loosing your search engine optimisation. You will want separate pages per content use. As stated above a method is to own separate pages for your distinct content after which use PHP includes to the repeating elements. So I consider the above. Also in … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , | Leave a comment