---
title: "Htaccess"
source: "https://docs.nexcess.com/learn/htaccess/"
description: "Includes Improving Website Speed with Apache mod_expires and browser caching, How to redirect non-WWW to WWW in the HTACCESS file, How to create URL redirect rules in SiteWorx, Force a Secure Connection (SSL) Using .htaccess in Cloud Sites and Display SVG Images Correctly in Cloud Sites. 20 articles."
taxonomy: "lw_resource_category"
articles: "20"
---

# Htaccess

Includes Improving Website Speed with Apache mod_expires and browser caching, How to redirect non-WWW to WWW in the HTACCESS file, How to create URL redirect rules in SiteWorx, Force a Secure Connection (SSL) Using .htaccess in Cloud Sites and Display SVG Images Correctly in Cloud Sites. 20 articles.

## Articles

- [Improving Website Speed with Apache mod_expires and browser caching](https://docs.nexcess.com/hosting/performance/website-optimization/improving-website-speed-with-apache-mod_expires-and-browser-caching.md): Learn to use Apache's mod_expires on cPanel to set browser caching, boosting site speed and reducing server load.
- [How to redirect non-WWW to WWW in the HTACCESS file](https://docs.nexcess.com/sites-stores/server-administration/linux/apache-web-server/redirect-to-www-via-htaccess.md): Learn how to redirect non-WWW URLs to WWW using .htaccess on Nexcess servers. This guide includes specific instructions for WordPress, Magento, and standard 301…
- [How to create URL redirect rules in SiteWorx](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/url-redirect-rules.md): Use SiteWorx to create redirect URLs.
- [Force a Secure Connection (SSL) Using .htaccess in Cloud Sites](https://docs.nexcess.com/hosting/cloud-sites/website-management/ssl/force-a-secure-connection-ssl-using-htaccess-in-cloud-sites.md): Ensure all visitors access the secure (https) site, even if they enter http in the URL, for Cloud Sites with SSL. Edit the .htaccess file to achieve this.
- [Display SVG Images Correctly in Cloud Sites](https://docs.nexcess.com/hosting/cloud-sites/website-management/php/display-svg-images-in-cloud-sites.md): In order to properly display SVG image types within the PHP environment, a specific line must be added to your .htaccess file.
- [Change PHP Settings for WordPress in Cloud Sites](https://docs.nexcess.com/hosting/cloud-sites/website-management/php/change-php-settings-for-wordpress-in-cloud-sites.md): Update the PHP memory limit, max file size, post size and execution time for Wordpress in Cloud Sites.
- [Frequently Encountered Issues](https://docs.nexcess.com/sites-stores/stellarsites/frequently-encountered-issues.md): Encountered some issues along the way? This guide covers common issues that may occur on your StellarSites website and the steps for troubleshooting them. If th…
- [Use .htaccess to Password Protect Your Site in Cloud Sites](https://docs.nexcess.com/hosting/cloud-sites/website-management/use-htaccess-to-password-protect-your-site-in-cloud-sites.md): While developing your Cloud Sites website, you can use .htaccess to password protect your site or specific pages for added security.
- [How to prevent bandwidth theft or Hotlinking](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/security/prevent-bandwidth-theft-hotlinking.md): Learn how to use the Hotlink Protection feature in SiteWorx to help protect your site's images and videos from potential hotlinking and bandwidth theft.
- [How to allow or block hostnames and IP addresses in SiteWorx](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/security/allow-or-deny-access-via-htaccess.md): Use SiteWorx to allow or block specific hostnames and IP addresses while managing permissions for a site or domain directory.
- [How to create and manage custom error pages in SiteWorx](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/custom-error-page.md): Use SiteWorx to create and manage custom error pages.
- [Redirecting URLs Using htaccess](https://docs.nexcess.com/hosting/performance/website-optimization/redirecting-urls-using-htaccess.md): Ease domain changes and maintain visitor clarity with URL redirects using .htaccess files in your web folder. Keep existing settings; consult a developer if nee…
- [Forcing SSL Connections Using .htaccess](https://docs.nexcess.com/hosting/security/ssl/forcing-ssl-connections-using-htaccess.md): For a secure connection, use .htaccess rules to redirect insecure traffic from http://mysite.com to https://mysite.com, assuming you have an SSL installed. Fami…
- [What Is an .htaccess File?](https://docs.nexcess.com/hosting/security/what-is-an-htaccess-file.md): Apache servers use .htaccess files to configure websites without altering server settings. Apply distinct settings per directory via multiple .htaccess files, c…
- [How to create and manage MIME types](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/manage-mime-types.md): How Nexcess clients on SiteWorx can customize MIME types and associated extensions.
- [How to enable and disable .htaccess files with SiteWorx](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/htaccess-files.md): Learn how Nexcess clients can enable and disable .htaccess files using SiteWorx.
- [How to manage index files](https://docs.nexcess.com/sites-stores/control-panel/interworx/siteworx/website-management/index-files.md): Control the way Apache manages directories using SiteWorx. You can set the files Apache looks for when a browser requests a URL that doesn't end in a file name…
- [What is the Apache .htpasswd file?](https://docs.nexcess.com/hosting/server-administration/linux/apache-web-server/apache-htpasswd-file.md): Learn more about the Apache .htpasswd file. This article provides the definition and purpose of the .htpasswd file and how it facilitates basic access authentic…
- [What is the Apache .htpasswd file?](https://docs.nexcess.com/sites-stores/server-administration/linux/apache-web-server/htpasswd-file.md): Learn more about the Apache .htpasswd file. This article provides the definition and purpose of the .htpasswd file and how it facilitates basic access authentic…
- [Apache Mod_rewrite](https://docs.nexcess.com/hosting/server-administration/linux/apache-web-server/apache-mod_rewrite.md): Learn to use Apache's mod_rewrite to redirect URLs, force HTTPS, create SEO-friendly links, and more with practical .htaccess examples.
