Search
 
SCRIPT & CODE EXAMPLE
 

PHP

hide extension

RewriteEngine on

#1)externally redirect "/file.php" to "/file"   
RewriteCond %{THE_REQUEST} /([^.]+).php [NC]
RewriteRule ^ /%1 [NC,L,R]
#2)Internally map "/file" back to "/file.php"
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ /$1.php [NC,L]
Comment

PREVIOUS NEXT
Code Example
Php :: tina4 generate crud 
Php :: SELECT * FROM `phptrip` WHERE `dest`=`BIHAR` LIMIT 0, 25 
Php :: lazy loading vs eager loading laravel 
Php :: ascii vrednosti php 
Php :: how to run php code in cmd 
Php :: laravel relationship hasmany 
Php :: php cut after first sentence 
Php :: unexpected variable 
Php :: laravel integer data type 
Php :: how to change laravel logo image 
Php :: laravel add model to one to many relationship 
Php :: get datetime of excel cell in codeigniter 
Php :: how to display all posts assocatied to user in laravel 
Php :: deleted_at 
Php :: codeigniter sanitize array in php 
Php :: codeigniter 4 base_url 
Php :: Generating Random String In PHP Using Hashing Functions 
Php :: calculate average in eager loading laravel 
Php :: php type generic object 
Php :: how to validate students who made payment in php and mysql 
Php :: download yii 1.1 
Php :: laravel Undefined index: token on reset 
Php :: php code for adding dara 
Php :: get popular models on laravel 
Php :: laravel multiple status for a attribute in laravel migration 
Php :: HASHING in php double scripting 
Php :: BelongsToMany relations pivot fields are null in Livewire refresh 
Php :: how to pass javascript variable to php 
Php :: laravel collection min 
Php :: upgrade phpopensuse 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =