Search
 
SCRIPT & CODE EXAMPLE
 

PHP

hide php extension htaccess

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]

#This works with xxx/index.php too (visiting mysite.com/xxx/)
Comment

PREVIOUS NEXT
Code Example
Php :: how to remove text tab in wordpress editor 
Php :: convert one time zone datetime value to another using php 
Php :: php string replace 
Php :: php artisan db:seed Call to undefined method AppModelsProduct::factory() 
Php :: laravel request all except token 
Php :: php save array to file 
Php :: delete image from public folder in laravel 
Php :: php referrer 
Php :: acf link 
Php :: Syntax error or access violation: 1071 La clé est trop longue. Longueur maximale: 1000 
Php :: php average from array 
Php :: enable php curl extension ubuntu 20.04 
Php :: laravel check if laravel query is empty 
Php :: select distinct laravel 
Php :: order alphabetically wp php 
Php :: wordpress enqueue style child theme 
Php :: check if constant is defined php 
Php :: php compare two dates 
Php :: Unresolvable dependency resolving [Parameter #0 
Php :: how to set timezone for iran in laravel 
Php :: validate year laravel 
Php :: how to check history of database in phpmyadmin 
Php :: php mysqli connection check 
Php :: php force array keys to lowercase 
Php :: laravel get last record 
Php :: php image to base64 
Php :: switch case php 
Php :: php artisan ui auth 
Php :: php convert array to json object 
Php :: javascript php variable 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =