PHP Classes

File: src/templates/Template_htaccess.php

Recommend this page to a friend!
  Classes of Jorge Castro   PHP API Assembler   src/templates/Template_htaccess.php   Download  
File: src/templates/Template_htaccess.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP API Assembler
Application to generate files to implement an API
Author: By
Last change:
Date: 1 year ago
Size: 405 bytes
 

Contents

Class file image Download
<?php http_response_code(404); die(1); // it is a template, it is protected to be called directly ?>
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ router.php?req=$1 [L,QSA]
    RewriteRule ^$ router.php?req=$1 [L,QSA]
    RewriteRule ^.*\.(bat|sh)$ - [F,L,NC]

</IfModule>