Powered By Network Solutions: How to Edit the .htaccess File
Editing the .htaccess file offers significant benefits, including optimizing website loading speeds and enforcing more robust security measures. Additionally, it provides a powerful way to customize website behavior, such as URL redirections and access control, and enhances the overall user experience.
Methods to Edit your .htaccess File
Editing .htaccess file via FTP
- Log in to your FTP client using your FTP credentials.
- In the remote site area of your FTP client, find the .htaccess file.
- Right-click on the .htaccess file and hit View/Edit.
Editing .htaccess file via Account Manager
- Log in to your account via https://www.networksolutions.com/my-account/login.
- Click Hosting on the left navigation menu.
Note: Alternatively, if you have multiple hosting accounts, you need to click MANAGE first to proceed with Step 3. - Click .htaccess Editor.
- On the .HTACCESS EDITOR page, select the domain name from the dropdown to which you want to apply the default page.
Note: If you have multiple domains, they will appear in the dropdown list. Select the domain name you want to modify. - Click on the directory selector box to select the folder where you want to add or edit a .htaccess file.
- Click the Select button after choosing the right directory.
- Choose among the different features of the .htaccess Editor to achieve the changes you want to implement in the file. Refer to the section Features of the .htaccess Editor.
Features of the .htaccess Editor
Advanced users may need to edit their .htaccess files directly. Select the domain from the dropdown and then a directory, and then click on Use Direct Editor.
There is a list of specific commands available in the .htaccess Editor that you can add to the .htaccess file depending on your needs. You can refer to the following information:

- Hotlink Protection: Prevent unauthorized URLs from loading files within specified directories at your site. You can choose to redirect these requests and specify URLs that allow access to your site files.
- Password Protection: Password-protected directories with user access lists.
- Custom Error Pages: Substitute pages that you designate for standard server error message pages. Custom error pages are useful when you want error pages to match the overall design of your site.
- Block IP Addresses: Block users from accessing your site from specific IP addresses or a range of IP addresses.
- Default Pages: Change the home page for a directory from the standard default filenames to the file that you specify. You can also set a prioritized list of default pages.
- MIME Types: Add or override system MIME types.
- URL Redirect: Redirect requests for a specific file or directory to a new destination. Redirecting prevents existing links at other sites or in bookmarks from generating 404 - File not found errors.
- Open Directory Browsing: This allows you to control access to the directories of your website. With this tool, you can choose to display the contents of a directory if no default page is specified.
Bandwidth theft (also called hotlinking and leeching) is the direct linking to a website's content, typically images or video. People often use an image tag to display an image from someone else's web page on another site, eBay auction listing, blog, or forum message post. When people request hot-linked images and other files from your site, your plan’s bandwidth is used, giving this practice the name of bandwidth theft.

- From the .htaccess Editor, click on Manage Hotlink Protection.
- The directory you are protecting is shown at the top.
- Check the Enable hotlink protection box.
- To permit requests for the files directly from URLs or links in email messages, click the Allow direct requests checkbox.
- If you want the requests to be redirected, enter the URL to which requests should be redirected.
- To specify URLs that are allowed to access files from your site, enter each one on its own line in the designated field. The system automatically adds the main URLs for your plan.
- Enter the extensions to protect from hotlinking, separated by a space. Click Save to save your settings. Optionally, click Reset to return to the previous settings.
Protecting a directory involves two steps: enabling protection and designating the users authorized to access the protected directory. The Password Protection tool allows you to password-protect certain directories on your website. You can allow individual users access to these encrypted pages by giving them their own username and password.

- From the .htaccess Editor, click on Manage Password Protection.
- The directory you are password-protecting is shown at the top.
- Check the Enable Status switch to green or right.
- Add a name for this realm and a tag name for this directory.
- Add Users with Passwords and Save.
- This list applies to the current directory and all child directories.
- You can refer to the image below for additional guidance.
Password protection setup outside of this tool may not be manageable with the tool. Please remove the old password protection and re-enable using the tool or manage prior passwords using the tool that set them up.
You can substitute pages that you designate for the standard server error pages that display when the Web server returns unsuccessful response/status codes. Custom error pages are set in a .htaccess file. They are useful when you want error pages to match the overall design of your site.

- From the .htaccess Editor, click Manage Custom Error Pages.
- The directory you are password-protecting is shown at the top.
- Tap Add New Error Status Code.
- Select the Error Status Code from the dropdown arrow.
- Click on the Save Custom Error Page.
- A visitor will see your custom error page that corresponds with the assigned error code.
- You can refer to the image below for additional guidance.
Block users from accessing your site from specific IP addresses or a range of IP addresses.

- From the .htaccess Editor, click Manage Block IP Addresses.
- The directory you are password-protecting is shown at the top.
- Click the blue Add IP Address/Range icon.
- Add the addresses you wish to block.
- You can refer to the image below for additional guidance.
Change the home page for a directory from the standard default filenames to a file that you specify. You can also set a prioritized list of default pages. If the first filename listed does not exist, the server will look for the next one, and so on. Click the Add New FileName to create your list of default page filenames. Drag them to the desired order.

MIME types tell browsers how to handle files. Most MIME types are set globally on our Web servers.

- Click Add New MIME Type.
- Enter the MIME Type.
- Enter the file Extension.
- Click on Save MIME Type.
Redirect requests for a specific file or directory to a new destination. If you change your site structure and rename files or directories, redirecting prevents existing links at other sites or in bookmarks from generating 404 - File not found errors. Visitors will be redirected to new or renamed files.

- Click Add URL Redirect.
- Follow the example settings that are provided.
- Then, click Add Redirect.
Allows you to control access to the directories of your website. With this tool, you can choose to display the contents of the directory if no default page is specified.

- Click Manage Open Directory Browsing.
- Check the Enable Directory Browsing box.
Related Article
Review
Editing your .htaccess file can greatly improve your website’s performance, security, and customization options. It allows you to manage settings like URL redirects, password protection, IP blocking, hotlink prevention, and custom error pages — all from one file. You can edit it via FTP for direct control or through the Network Solutions Account Manager using the built-in .htaccess Editor. This tool offers both direct and command-based editing, making it easier to apply changes without manually coding. While it’s powerful, it should be used carefully — always keep a backup before making edits to avoid accidentally disabling your site.