. Htaccess online tool

Is the simplest solution to the most common editing commands to fisiereler .htaccess . Explaining the large file. Htaccess is a file ASCII (Easy to edit in notepad) that communicates with the server (Apache). Improper setting of may affect the proper functioning of the system and / or domains and subdomains on a server, if this file is found in the folder root.
Orders. Htaccess that can be edited htaccesseditor.com :

1. Management errors . - The simplest example would redirect a user to a nonexistent page (404) of a site, the index its site or to another website.

htaccesseditor.com, allow editing orders type errors "client requests erroneous"(Errors between 400 and 414) and server errors (Between 500 and 505)

Requests wrong :

400 Bad request
401 Authorization Required
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request timed out
409 Conflicting Request
410 Gone
411 Content Lenght Required
412 Failed precondition
413 Request Entity Too Long
414 Request URI Too Long

Server error:

500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported

Error page setup

2. Block access to files on the web server.

Deny all access to files - Used to block user access to a website or web page.

<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</ Files>
Indexes Options
order deny, allow

Deny all access to files

3. User and password protection

Using a file . Htpasswd and in .htaccess an order authenticationWe can limit user access to certain folders on the server. Access is allowed only on the basis of user name and password.

Basic authentication

4. Setup WWW

Redirect (Redirect 301) A site visitor to a URL conditioning. I said in a previous post of forwarding traffic si anti split domain . :)

RewriteEngine on
RewriteCond% {HTTP_HOST} ^ (stealthsettings.com) (: 80)? [NC] RewriteRule ^ (. *) Https://stealthsettings.com/$1 [R = 301, L]

Setup WWW

5. Redirection directive (301 si 302)

4 resembles deck. , Here is allowed only edit multiple links. Redirection 301 Moved Permanently Be used after changing the URL address of a website. Basically this command line redirects the visitor to a page that existed on the server to an existing one.


Index_vechi.html permanent redirect index_nou.html

Url_inexistent.html permanent redirect url_actual.html

Directives and the redirections redirection are used between fields. For example, if you were to move my blog on stealthsettings.com pe www.google.com , Written redirection command file. Htaccess in the root folder Blog stealthsettings.com Would be:

Redirect permanent / www.google.com/

Remember that file .htaccess must be uploaded to the server in the format ASCII and must be set CHMOD 644 (RW-R-R-), to stop writing and / or reading it from the outside. Before using htaccess, make sure that your server supports this type of file is required for some commands enable Apache module (URL Rewriting Engine).

For a complete list of settings / directives that can be used in .htaccess visit .

. Htaccess online tool

About the author


Passionate about everything that means gadgets and IT, I write with pleasure stealthsettings.com from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment is processed.