Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options +FollowSymLinks -MultiViews
- RewriteEngine On
- RewriteBase /
- RewriteRule products/p/(.*)\.php$ products.php?p=$1 [L]
- RewriteRule products.php/p/$ /products/ [L,R=301]
- ## To remove .php file extension start --- its working
- RewriteCond %{THE_REQUEST} ^(GET|HEAD)\s([^.]+)\.php [NC]
- RewriteRule ^ %2 [R,NC]
- RewriteCond %{REQUEST_FILENAME}.php -f
- RewriteRule ^ %{REQUEST_URI}.php
- ## To remove .php file extension end --- its working
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement