Home
Knowledge Base
News
How to Access Your .htaccess
Linux Servers
>
Plesk Server
This article explains how to access to make changes to your .htaccess file within an Apache/Ngnix and Linux environment.
Caution: Before making any modifications to your web.config make sure you create a viable backup of your site that can be restored should the edits create a problem. To back up your site, refer to
Back Up Your Website Using Plesk
.
Your .htaccess file is located in the httpdocs folder. To edit this file
you can use
Notepad ++
or simply Notepad to make changes to the .htaccess file.
Options for Accessing Your .htaccess file
Use FTP to download, modify, then upload the file
Use Plesk Control Panel to access and modify the file
Use SSH to access the file (for Dedicated Server customers and experienced technicians)
Use FTP to Download, Modify, and then Upload the Web.config File Back to the Server
Open your FTP program on your local machine
Use FTP to access your site. See
How to Use FTP
for information on how to use your ftp account to access your files
Navigate to the
httpdocs
folder
Select the
.htaccess
file and drag it to your local machine
Make a copy, then modify the file as needed to resolve the issue you are working through
To send the updated file back to your server, drag the modified version to the httpdocs folder
Use Plesk 12.x and Onyx to Access and Modify the .htaccess File
Log into your Control Panel
In the
Subscriptions
tab, click on your domain
Click on
Websites and Domains
tab and click
Show More
at the bottom of the page
Click the icon for
File Manager
Click on the
httpdocs
directory on the left
Click on your
.htaccess
To edit your
.htaccess
, click
Edit in Text Editor
or
Edit in Code Editor
When you have finished editing it, click on
Save
Use SSH to access the file (for Dedicated Server customers and experienced technicians)
Login to your server via
SSH
To access the .htaccess file for a specific site use the following command:
cd /var/www/vhosts/<insert domain name>/httpdocs
The following command will ensure that you have a backup of your .htaccess file:
cp .htaccess .htaccess.bak
To edit your .htaccess file run the command below:
nano .htaccess
Add Feedback
Was this article helpful?
Yes
No
Thanks for your feedback...
Share this article
Print
×
forgotPassLbl
Username
×
Please log in below
Username
Password
Remember Me
×
Not Logged In
You must be logged in to perform this action.