Step2: Find the Files category and click on the File Manager icon.
Step3: Click Settings at the top right corner.
Step4: Choose the document root for the domain you are working with and be sure the checkbox next to Show Hidden Files is checked. Click the Save button.
Step5: Look for the .htaccess file and right-click on it. This brings up a menu. Find and click on the Edit option
Step6: You are now in the text editor. Place either selection of code in the file and click on the Save Changes button at the top right corner of the screen. Be sure to replace 'example.com' with your actual domain name. NOTE: do not place both selections of code in the file as it will cause an error.