Here's how to create a text file suitable for an .htaccess file: 1. Open up a text editor on your computer. We recommend that you use Notepad (Windows), SimpleText (Macintosh), or Emacs (Linux / UNIX). 2. Save the file (in an easy-to-find location) as .htaccess (including the initial dot). 3. Now, make sure that your text editor did not append a .txt suffix to the file name. (In Windows, you can do this by right-clicking the icon for the text file and selecting Properties.) If the file name does have a .txt suffix (i.e. '.htaccess.txt'), remove the suffix by renaming the file. 4. Before entering code into your new file, make sure that Word Wrap is turned off. (In Notepad, select Format... from the top navigation bar and make sure that Word Wrap is unchecked. This is important because most .htaccess commands need to be placed on one line only. 5. You can now enter your code into the file. 6. Upload the .htaccess file into your web space in ASCII mode. The .htaccess file will affect the folder that it is uploaded to and all it's subfolders.
Most Popular Articles
Cum adaug un alt domeniu în contul meu?
Domenii aditionale/addon înseamnă că puteţi gazduii multiple domenii într-un singur cont de...
How can I password protect my website / folders ?
To create a password protected folder you need to go to cPanel and click on "Password Protect...
How to edit/change/add CNAME or any other DNS records?
You can change the CNAME or any other DNS records from the "DNS Zone Editor" tool.
How to use remote MySQL?
You need to upgrade your plan to Business or Premium to have remote mysql.
How to use shared SSL?
Unfortunately we do not support shared SSL here. You can only install a trusted SSL with paid plans.
Powered by WHMCompleteSolution
