WHAT SORT OF THINGS SHOULD I TYPE ONTO MY .HTACCESS FILE FOR A WEBSITE?
Posted on 30. Jul, 2010 by admin in Cheap Hosting
Hello,
I hit been datum and doing searches on this matter but a beatific pass doesn’t seem to exist, at small not digit that module sound my needs. I am using whatever ultimate html editors, along with my restricted html, drinkable and css noesis to attain a website using text, images, forms and maybe whatever flash. My difficulty is I don’t see how to ingest .htaccess enter correctly. I am rattling newborn to web design, digit of my large concerns is security, so I am disagreeable to ordered up passwords to individual locations along with forbidding every sorts of bots and accumulation assembling programs on the net.
I am trusty individual grouping module only verify me to lease someone to civilize me or do it for me but I am dead a DIY category of guy, I am considering that maybe in 6 months I haw not hit the instance to control a whatever of my possess websites and then I module lease someone to do these sorts of things for me, digit of the large reasons for this is money. I don’t poverty to clear someone 1000′s of dollars for a variety of digit effort deal, what happens when I poverty to modify something? I’d be variety of cragfast I feel. So correct today it’s DIY or hit an employee who does this work. The prizewinning pick at the instance is DIY, I am using hostgator and I crosspiece with them most this idea, they declare doing whatever investigate online for this idea. So correct today this is the prizewinning boulevard I hit concerning web place setup. I hit a evenhandedly pleasant website worn up, I utilised kompozer and coffeecup, those variety of WSISYG editors. If you undergo of whatever another editors that revilement a aggregation of the handicap impact I would revalue it. Like I mentioned before, I undergo 4.1 HTML along with a lowercase drinkable and css but I see same a child stagnant for the prototypal time, wobbly and constantly dropping over.
Thank you.
I hit feature that “robots.txt” are sometimes unnoticed by whatever bots and things same that. http://www.webmasterworld.com/forum92/205.htm
elven_rangers
30. Jul, 2010
First of all, to deny access to bots and other automatic readers, you don’t need the .htaccess, you need to write a single robots.txt file and plant it in the root of your site. I won’t go in the details, if you use Google’s Wemaster Tools, it explains nicely how to use the robots.txt file. You can also just google for the syntax, it’s just one word: Deny and the path to the location(s) you want ignored by bots.
Now, for password protection … first of all this kind of protection is good when you when you still want to allow direct access to those files/locations directly from an URL, otherwise you should use forced redirection.
For setting up apache passwords with .htaccess read here:
http://webdesign.about.com/od/htaccess/ht/hthtaccess.htm
Now, for redirection. Redirection should be used when you want to protect files and folders on your site from any kind of direct access (but you still want to serve that content through proper pages of you site, eg: you have a background photo you use on a page, you don’t want anyone to download or type the url to the timage but still want to be seen as the background). For that, see here:
http://webdesign.about.com/od/htaccess/ht/ht301redirect.htm
PayneLessDesigns.com
30. Jul, 2010
One basic tutorial with additional links:
http://www.paynelessdesigns.com/tuts/tut_htaccess_intro.shtml
Ron