.htaccess files allow you to control server responses and offer features such as directory protection and redirects. Instructions for creating a .htaccess file are available for Plesk and Windows. In Plesk, this is done via the file manager by creating a new file named .htaccess and inserting the desired commands. On Windows, the file is created with Notepad and saved as .htaccess before being uploaded to the server via FTP. More information can be found in the online help.
.htaccess files enable you to control server responses. Detailed information on setting up directory protection, redirects, etc., can be found under the following entry in our online help:
External Help Pages
Instructions for creating a .htaccess file are described in the following guides.
Plesk
Windows
Plesk
- In Plesk, click on the menu item Files to open the file manager.
- Navigate to the desired folder.
- Click on the blue plus sign - Create File.
- Enter the filename .
htaccessin the Filename field and confirm by clicking OK.
- Open the file and write the desired commands into it. Then save the file.
Windows
- Open the Run dialog by pressing Windows key + R.
- Type notepad in the field and confirm with OK.
- The Windows Notepad window will open. Enter the desired .htaccess commands.
- Save the file via File -> Save As. Choose All Files (*.*) as the file type and enter .htaccess as the filename. Then save by clicking Save.
- Now start your FTP client, navigate locally to the directory where the .htaccess file is located, and upload the file to the desired directory on the server.