Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

removing filepath from url using htaccess

#remove php file extension-e.g. https://example.com/file.php will become https://example.com/file 
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L] 
Source by www.plothost.com #
 
PREVIOUS NEXT
Tagged: #removing #filepath #url #htaccess
ADD COMMENT
Topic
Name
3+6 =