PHP Classes

File: rest/.htaccess

Recommend this page to a friend!
  Classes of Bharat Parmar  >  PHP CRUD REST API Server  >  rest/.htaccess  >  Download  
File: rest/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: htaccess file for rest
Class: PHP CRUD REST API Server
REST API server with MySQLi based CRUD operations
Author: By
Last change:
Date: 5 years ago
Size: 339 bytes
 

Contents

Class file image Download
<IfModule mod_rewrite.c>
    RewriteEngine On

	RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-s
	RewriteRule ^(.*)$ api.php?function=$1 [QSA,NC,L]

	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.*)$ api.php [QSA,NC,L]

	RewriteCond %{REQUEST_FILENAME} -s
	RewriteRule ^(.*)$ api.php [QSA,NC,L]	
</IfModule>
For more information send a message to info at phpclasses dot org.