HOMEPAGE

 BANNER EXCHANGE

 WEB AWARD

 LIVE TOPSITE

 TOOLS

 Tools  - Antispam - Your Guestbook  -  Whois  - How to  -  What is  - Website Check - More ..

 
:: A knowledge base for Arabic Webmasters ::

How to view .htaccess files on your server

Many servers are configured to hide files with names that begin with a period - .htaccess and .htpasswd, for example. Here's how to configure a few popular FTP clients to display hidden files:

CuteFTP
  1. Right-click the site you want to work with from the "Site Manager" tab, and select "Properties".
  2. Click the "Actions" tab and click the "Filter" button.
  3. Enable the "Enable filtering" and the "Enable server side filtering" checkboxes.
  4. Enter -a in the "Remote filter" field and click "OK" then "Connect" to save your changes and connect to the site.
FileZilla
  1. Click the "Edit" menu option and select "Settings".
  2. Select the site you want to work with and click the "Edit" button.
  3. Select "Startup" on the left of the window and enter -la in the "Remote field mask" field.
  4. Click "OK" then "Connect" to save your changes and connect to the site.
WS_FTP
  1. Click the "Tools" menu option and select "Site Manager".
  2. Select the site you want to work with and click the "Edit" button.
  3. Select "Startup" on the left of the window and enter -la in the "Remote field mask" field.
  4. Click "OK" then "Connect" to save your changes and connect to the site.

How to display a custom 401 error page

Your web host's server displays a "401 Authorization Required" error whenever a user can't login to a password protected directory on your website.

Like most of the default errors that servers display, the 401 error doesn't look very friendly. Fortunately, you can replace it with a page of your own. Your custom page could tell users how they can register for a username and password, or how to look up the password they already have.

Here's how to display your own 401 error page:
  1. Create the page you would like to use when a 401 error occurs and save it as 401.html.
  2. Open Windows Notepad, and type in the line below:

    ErrorDocument 401 /401.html

  3. Save the file as .htaccess
  4. Upload 401.html and .htaccess into the folder on your server where your website's home page is located.

How to display a custom 404 error page

Your web host's server displays a "404 File Not Found" error whenever a user can't login to a password protected directory on your website.

Like most of the default errors that servers display, the 401 error doesn't look very friendly. Fortunately, you can replace it with a page of your own. Your custom page could tell users how they can register for a username and password, or how to look up the password they already have.

Here's how to display your own 404 error page:
  1. Create the page you would like to use when a 404 error occurs and save it as 404.html.
  2. Open Windows Notepad, and type in the line below:

    ErrorDocument 404 /404.html

  3. Save the file as .htaccess
  4. Upload 404.html and .htaccess into the folder on your server where your website's home page is located.

How to prevent users from viewing your .htaccess files

Preventing visitors from being able to view the contents of your .htaccess files can add another layer of security to your website. Some web servers are already configured to block access to .htaccess files. If yours isn't, just add the four lines below to all of your .htaccess files:

<Files .htaccess>
order allow,deny
deny from all
</Files>

Visitors will now get a "403 Forbidden" error whenever they try to look inside a .htaccess file.

How to prevent users from listing files in your directories

Many web servers are configured to prevent visitors from listing files in directories that don't contain an index file. Here's what you can do if yours isn't:

  1. Open Windows Notepad, and type in the line below:
    Options All -Indexes
  2. Save the file as .htaccess
  3. Upload .htaccess into the folder on your server where your website's home page is located.

From on now on, your server should respond with a "403 Forbidden" error when a visitor tries to access any directory that doesn't contain an index file.

 

 

 

 

Arabic Webmasters WebAward  

 

Homepage | Banner eXchange | Live Topsite | WebAward | WebTools | Advertise | Contact us | Tell a friend


 

Proud to be part of VivaOrient Websites  .:: Recommend us to your friends ::. BestArabic.com

Designed, Translated & Maintained by BoNetwork.com- © All rights reserved  2002 -
Marketed by ArabicWebmasters.com - Check out the Advertising offers