PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Marcel Kohls   Very Simple API   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Very Simple API
Implement REST APIs using service classes
Author: By
Last change:
Date: 6 years ago
Size: 809 bytes
 

Contents

Class file image Download
Options -Indexes ErrorDocument 403 http://localhost/vsapi/access-denied/ ErrorDocument 404 http://localhost/vsapi/page-not-found/ RewriteEngine on RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR] RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2}) RewriteCond %{HTTP_HOST} ^(www\.localhost/vsapi)(:8012)? [NC] RewriteRule ^(.*) http://localhost/vsapi/$1 [R=301,L] DirectoryIndex index.html index.php order deny,allow RewriteRule ^page-not-found/?$ /vsapi/controller/page-not-found.php [NC,L] RewriteRule ^access-denied/?$ /vsapi/controller/access-denied.php [NC,L] RewriteRule ^api/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?(.*)/?$ /vsapi/index.php?vsapiversion=$1&vsapiservice=$2&vsapiuid=$3 [NC,L]