This article describes how to use custom .htaccess files to control PHP settings for your web site.
You can use directives in an .htaccess file to control many PHP settings. Additionally, you can set up one or multiple custom .htaccess files to define how your web site functions. For example, you might have a custom file in your public_html directory for your web site's main pages, and a separate custom file in your public_html/images directory for your web site's image files.
To set up a custom .htaccess file, follow these steps:
# Prevent Apache from serving .ht* files: <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch>
To view a complete list of PHP directives, please visit http://www.php.net/manual/en/ini.list.php.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.