htaccess介紹和使用方法 |
發(fā)布時間: 2012/8/9 15:16:22 |
htaccess文件是非常有用的,下面一篇介紹:
• Part 1 – Introduction介紹 • Part 2 - .htaccess Commande命令 • Part 3 - Password protection密碼保護(hù) Part 1 – Introduction介紹 Introduction 介紹 In this tutorial you will find out about the .htaccess file and the power it has to improve your website. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn't difficult to use and is really just made up of a few simple instructions in a text file. 從本指南中,您可以學(xué)習(xí)到有關(guān).htaccess文檔及其功能,用以優(yōu)化您的網(wǎng)站。盡管.htaccess只是一個文檔,但它可以更改服務(wù)器的設(shè)置,允許您做許多不同的事情,最流行的功能是您可以創(chuàng)建自定義的“404 error”頁面。.htaccess 并不難于應(yīng)用,只是在一個text文檔中添加幾條簡單的指令而已。 Will My Host Support It? 我的主機(jī)支持它嗎? This is probably the hardest question to give a simple answer to. Many hosts support .htaccess but don't actually publicise it and many other hosts have the capability but do not allow their users to have a .htaccess file. As a general rule, if your server runs Unix or Linux, or any version of the Apache web server it will support .htaccess, although your host may not allow you to use it. 這可能很難用簡單的答案來回答。許多主機(jī)支持.htaccess但實(shí)際上并不會明確聲明,許多其他類型的主機(jī)有能力但并不允許他們的用戶使用.htaccess文檔。作為一般性的規(guī)則,如果你的主機(jī)使用Unix或Linux系統(tǒng),或任何版本的Apache網(wǎng)絡(luò)服務(wù)器,它一般來說是支持.htaccess的,盡管你的主機(jī)服務(wù)器可能不允許你使用它。 A good sign of whether your host allows .htaccess files is if they support password protection of folders. To do this they will need to offer .htaccess (although in a few cases they will offer password protection but not let you use .htaccess). The best thing to do if you are unsure is to either upload your own .htaccess file and see if it works or e-mail your web host and ask them. 本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |