Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Redirect file.php to file with .htaccess | Redirect to its non .php version

# To externally redirect /dir/file.php to /dir/file
RewriteCond %{THE_REQUEST} s/+(.+?).php[s?] [NC]
RewriteRule ^ /%1 [R=301,NE,L]
Comment

PREVIOUS NEXT
Code Example
Php :: Laravel: Session message exist while click on browser back button 
Php :: php deader deny iframe 
Php :: answer to guzzle/psr7 undefine 
Php :: avoid web crawling in Laravel 
Php :: was loaded over https, but requested an insecure xmlhttprequest endpoint laravel 
Php :: php if simple 
Php :: pivot null in livewire refresh 
Php :: detect change in log file in real time php 
Php :: PHP Example - AJAX Poll 
Php :: wordpress custom end point 
Php :: salom 
Php :: laravel | eloquent | db | randomly fetch | query data 
Php :: Replace default WP search and dropdown placeholder 
Php :: Remove auto generate p from category description 
Php :: laravel project preparation,laravel project create 
Php :: HTTP Authentication example forcing a new name/password 
Php :: php accounting ledger 
Php :: date fomat in php 
Php :: display woocommerce review using specific id 
Php :: how to type casting and overriding in php 
Php :: execute query and use die in php 
Php :: array value auto fill in old value laravel 8 
Php :: list database table rows plugin wordpress 
Php :: php month to local language 
Php :: mail php send 
Php :: laravel multiple status for a attribute in laravel migration 
Php :: PHP OOP - Class Constants 
Php :: Laravel: validate an integer field that needs to be greater than another 
Php :: Custom searchform 
Php :: laravel 8 app with more than one database 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =