Redirect all .php requests to .html using .htaccess

后端 未结 0 1631
被撕碎了的回忆
被撕碎了的回忆 2020-12-21 16:04

The following code works to hide .php and replace it with .html

RewriteEngine ON
RewriteCond %{REQUEST_URI} ^/([^/]*)/([^.]*)\\.html/?$ [NC]
RewriteRule ^(.*)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题