.htaccess Tutorial. Berikut ini beberapa tutorial seputar .htaccess. Bermanfaat untuk pengelola web yang ingin menambah security atau proteksi pada website nya.
Untuk membuat folder web folder berpassword, silakan ikuti langkah berikut:
- Buat file .htaccess di folder yang akan diberi password – http://www.htaccesstools.com/htaccess-authentication/
- Buat file .htpasswd http://www.htaccesstools.com/htpasswd-generator/
- Bagaimana mengetahui full path folder – http://www.htaccesstools.com/articles/full-path-to-file-using-php/
Referensi Tutorial .htaccess ada di sini:
http://www.htaccesstools.com/htaccess-authentication/
https://forestmist.org/blog/creating-new-htaccess-file-windows-7
https://www.mattcutts.com/blog/htaccess-101/
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/
http://www.cyberciti.biz/faq/howto-setup-apache-password-protect-directory-with-htaccess-file/
http://www.cyberciti.biz/faq/howto-setup-apache-password-protect-directory-with-htaccess-file/
http://viralpatel.net/blogs/21-very-useful-htaccess-tips-tricks/
Tips lain
- Sintak Dos untuk Rename File htaccess.txt menjadi .htaccess
Untuk merename file htaccess yang dibuat dinotepad dengan format txt, diperlukan merubah nama file dengan diawali dot atau titik. Caranyamasuk msdos, kemudian ketik D:\rename D:\01.DATA.WEB\01.web\medical\memoupload\_htaccess.txt .htaccess - Memproteksi folder agar tidak bisa diakses
Options -Indexes
# or #
IndexIgnore *
ErrorDocument 403 “<div align=’center’><h2>Error page</h2>the page is unavailable</div>”
ErrorDocument 404 “<div align=’center’><h2>Error page</h2>the page is unavailable</div>”
Merename .htaccess
- Gunakan command dos dengan mengarahkan mouse ke start > run > cmd, kemudian ketik C:\rename htaccess.txt .htaccess
- selamat mencoba!