htaccess File

.htaccess (hypertext access) is the default name of directory-level configuration files. A .htaccess file is placed in a particular directory, and the directives in the .htaccess file apply to that directory, and all subdirectories thereof. It provides the ability to customize configuration for requests to the particular directory. The file name starts with a dot because dot-files are by convention hidden files on Unix-like operating systems.
Use a standard text editor and rename the extention to htaccess.
There is no file name as such

Suggested .htaccess file contents that will:

1. Automaticall redirect users to "www.yourdomain.com" if the enter "yourdomain.com"
2.allow your own custom error pages to be displayed

Start copy below the line
------------------------------------------------------------------
RewriteEngine On
RewriteCond %{HTTP_HOST} ^exelwebs.com [NC]
RewriteRule ^(.*)$ http://www.exelwebs.com/$1 [L,R=301]
ErrorDocument 404 /404.shtml
ErrorDocument 206 /206.shtml
ErrorDocument 302 /302.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 500 /500.shtml
SecFilterEngine Off
------------------------------------------------------------------
End copy above the line

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Error Page Codes

What are Error Codes? These numbered error codes are how the Web server tells the userabout a...

Custom Error Code pages

What are custom Error Code pages? Instead of seeing the default error message, you can create...

Why are my FrontPage extensions not working?

You must first make sure you have installed the extensions from going into your cpanel and...

Why is my order marked as fraud?

We carefully evaluate new accounts to determine high risk orders. Please do not take it...

Block Countries using CSF Firewall

To block countries from accessing your server or VPS can be done by editing your CSF firewall....

Powered by WHMCompleteSolution