Search
 
SCRIPT & CODE EXAMPLE
 

PHP

hide .php from url .htaccess

# Run Php without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

# Return 404 if original request is .php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?.php[? ].*$"
RewriteRule .* - [L,R=404]
Comment

PREVIOUS NEXT
Code Example
Php :: how to check if a string contains a substring in php 
Php :: php foreach echo key value 
Php :: php.ini settings 
Php :: compare hashed password and a unhashed password in laravel 
Php :: trim comma from variable in php 
Php :: laravel carbon today date format 
Php :: laravel blade errors all 
Php :: wordpress get_permalink 
Php :: display all errors at once in laravel 
Php :: laravel clear everything 
Php :: laravel add values to request 
Php :: cascade in laravel migration 
Php :: importing current year in laravel blade 
Php :: datetime to string php 
Php :: seconds to minutes php 
Php :: why use ob_start() in php 
Php :: php mysql date format 
Php :: for php 
Php :: php self submit 
Php :: php myadmin reset auto incremente 
Php :: remove all html codes using php 
Php :: how to use bootstrap in laravel 8 remove tailwind 
Php :: php remove first and last char 
Php :: default port for laravel 
Php :: convert utc to local time phpAdd Answer 
Php :: php laravel xml to json 
Php :: php add string inside string at position 
Php :: guzzle http try catch 
Php :: wordpress query orderby name 
Php :: php calculate percentage 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =