How can I simply remove the .php extension using .htaccess only for a specific file? -
I have seen a lot of answers regarding redirecting a lot of URLs so that any .php extensions should be removed, but Due to some difficulties for this struggle for me
Rev.Reuters ^ citation / ([a-zA-Z0- 9] +) / $ index.php? Id = $ 1 rewrite rule / quote / ([A-GA-Z0- 9] +) $ Index.php? Id = $ 1 I already have / quotation / 1 / quotation / 2 etc /index.php? Id = 1 and /index.php?id=2 etc. But what I really want to do is just match the / random / and point it to /random.php and none of the current replies seem so specific . Thank you. "text-post" itemprop = "text" to remove .php extension with <
.htaccess > Use it:
RewriteEngine On RewriteCond% {REQUEST_FILENAME}! -f Rewrite Convert% {REQUEST_FILENAME}! -D Rivetrium ^ ([^.] +) $ $ 1.php [NC, L]
Comments
Post a Comment