PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   Luminova REST API Example   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Luminova REST API Example
Implements an example of a REST API
Author: By
Last change:
Date: 17 days ago
Size: 491 bytes
 

Contents

Class file image Download
<?php
/**
 * Redirect Script to public controller in development mode.
 *
 * This script is intended to redirect all incoming requests to the `public` directory,
 * which contains the main entry point for the application. It is typically placed in
 * the project root to ensure that users are redirected to the correct public folder.
 */
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Wed, 03 Apr 1991 05:00:00 GMT');
header('Location: ./public/', true, 301);
exit();