Search
 
SCRIPT & CODE EXAMPLE
 

PHP

hiding the extension of website

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
Comment

PREVIOUS NEXT
Code Example
Php :: array find php 
Php :: onclick call route laravel 
Php :: string remove last two characters php 
Php :: how to get last id in database codeigniter 4 
Php :: get user role in symfony 
Php :: migration laravel 
Php :: php array sort by key value 
Php :: How to run database Query in WordPress? 
Php :: how to set base url in codeigniter 
Php :: php curl get response body 
Php :: pdo php search table 
Php :: laravel rename table 
Php :: laravel nested query builder 
Php :: php calculate hours and minutes between two times 
Php :: composer_update 
Php :: php convert string to chars 
Php :: laravel set config 
Php :: get post index wordpress 
Php :: laravel ignore unique on update 
Php :: how to create config file in php 
Php :: Artisan command on live server 
Php :: php continue 
Php :: laravel get parent from child 
Php :: login form in php 
Php :: php et WP_Post Object 
Php :: laravel collection remove empty 
Php :: php cmd shell 
Php :: php serialize() 
Php :: laravel add user 
Php :: convert string to float in php 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =