- #Litespeed web server htaccess code#
- #Litespeed web server htaccess password#
- #Litespeed web server htaccess free#
htaccess file.īy default, Mod_Rewrite maps a URL to a filesystem path. We would like to draw your attention to the usage of Mod_Rewrite rules in. Mod_Rewrite – specifies how web pages and URLs are displayed to the visitors.
#Litespeed web server htaccess code#
NOTE: To set up a document for other errors (403, 500, etc.), just replace 404 with the corresponding error code and /404.html with the path to the error file. Whenever a 404 (File Not Found) error appears, this line tells the Apache Web server to load an 404.html file located in the directory root of the domain you set the error page for. htaccess file with the following text below: To set up a custom error document, create an. This helps to avoid the default '404 File Not Found' error for example and allows you to display a customly designed error with the guiding directions back into your website content, rather than leaving puzzled. This option is very useful as it allows you to show website visitors an error message matching your website theme if a URL on your website does not work.
#Litespeed web server htaccess password#
You can password-protect a directory, or several of them, and any time a visitor tries to access it, username and password will be required.ġ. You are ready to add your own configuration rules and save them.Īuthorization/authentication – specifies security restrictions for a directory/subdirectory.
#Litespeed web server htaccess free#
htaccess file located in your File manager, feel free to create a new one using File option: Once there, make sure that Show Hidden files (dotfiles) option is enabled in Settings menu:Ĥ. If you need to make some changes to the addon domain, move to public_html/ folder. htaccess file for your main domain, navigate to public_html folder.
Navigate to the section Files > File Manager:ģ. htaccess file of your hosting account, follow the steps below:Ģ. The changes made in this file will be implemented immediately and no server restart is required. htaccess file takes effect over the entire directory it is placed in, including all files and subdirectories. It is used to alter web server configuration (enable or disable additional features) for the specific account without changing global server settings. htaccess is a directory-level configuration file supported by the Apache web server.