. Htaccess online tool

htaccesseditor.com 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 be, redirecting a user from a non-existent page (404) of a site, to its index or to another web page.

htaccesseditor.com, allows editing error commands such as "client requests erroneous”(Errors between 400 and 414) and a 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 Boarding 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 users' access to the site or a web page.

<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
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.

Example:

Redirect permanent index_vechi.html index_nou.html

Redirect permanent url_inexistent.html url_actual.html

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

Redirect permanent / www.google.com/

Online tool for creating .htaccess files

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

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

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » Linux » Apache » . Htaccess online tool
Leave a Comment