• ServerPilot
  • Menu
  • Features
  • Pricing
  • Docs  &  Support
  • Login
  • Sign Up
Learn how ServerPilot makes it easy to host fast, secure PHP and WordPress sites on any server.
Articles

How to Use .htaccess Files

You can control the behavior of the Apache web server by creating a file named .htaccess in your app's web root directory.

apps/APPNAME/public/.htaccess

Using a .htaccess file is a simple and safe way to customize your app.

.htaccess Examples

  • Enable Directory Listing
  • Force SSL
  • Redirect to a Different Domain
  • How to Enable Browser Caching
  • Set Environment Variables
  • Replace Strings in a Web Page before Sending the Response

ServerPilot is a secure control panel optimized for hosting WordPress and PHP websites on cloud servers.

  • Follow Us
Overview
  • Pricing
  • WordPress Hosting
  • Magento Hosting
  • WooCommerce Hosting
  • Laravel Hosting
  • PHP Hosting
  • Features
  • About
  • Blog
  • Security
  • API
  • AutoSSL
Resources
  • Documentation
  • Sign Up
  • Getting Started
  • Support
  • Referral Program
  • Logos and Badges
Articles
  • How ServerPilot Works
  • Install WordPress on DigitalOcean
  • DigitalOcean Control Panel
  • cPanel Alternative
  • Plesk Alternative
  • HostGator Alternative
  • Bitnami Alternative

ServerPilot © 2017   Terms & Privacy