PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Nitesh Apte   Define MVC PHP 8   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Define MVC PHP 8
Framework to route requests via a front controller
Author: By
Last change:
Date: 2 years ago
Size: 1,044 bytes
 

Contents

Class file image Download
## # @version 3.0: .htaccess 14401 2021-09-22 03:40:00Z Nitesh Apte $ # @package Define MVC - PHP 8.1 # @copyright Copyright (C) 2021 Nitesh Apte. All rights reserved. # @license GPL Version 3 # @author Nitesh Apte ## # Disable directory listing Options -Indexes ServerSignature Off DirectoryIndex bootstrap.php RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ bootstrap.php/$1 # Error redirection # ## Replace %{HTTP_HOST} with your domain name if it doesn't work ## ErrorDocument 400 %{HTTP_HOST}/error/default/400/ ErrorDocument 401 %{HTTP_HOST}/error/default/401/ ErrorDocument 402 %{HTTP_HOST}/error/default/402/ ErrorDocument 403 %{HTTP_HOST}/error/default/403/ ErrorDocument 404 %{HTTP_HOST}/error/default/404/ ErrorDocument 408 %{HTTP_HOST}/error/default/408/ ErrorDocument 415 %{HTTP_HOST}/error/default/415/ ErrorDocument 500 %{HTTP_HOST}/error/default/500/ ErrorDocument 502 %{HTTP_HOST}/error/default/502/ ErrorDocument 503 %{HTTP_HOST}/error/default/503/