Created
August 10, 2012 20:55
-
-
Save mattclements/3317812 to your computer and use it in GitHub Desktop.
Sample HTAccess File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^(.*)$ $1.php | |
ErrorDocument 400 /error_pages/400.php | |
ErrorDocument 401 /error_pages/401.php | |
ErrorDocument 403 /error_pages/403.php | |
ErrorDocument 404 /error_pages/404.php | |
ErrorDocument 410 /error_pages/410.php | |
ErrorDocument 500 /error_pages/500.php | |
#Serve .htc files correctly, for IE fixes | |
AddType text/x-component .htc | |
php_value upload_max_filesize 10M | |
php_value post_max_size 10M | |
php_value max_execution_time 200 | |
php_value max_input_time 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment