1

My .htaccess file code

RewriteEngine On
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
mplungjan
  • 169,008
  • 28
  • 173
  • 236
pooja
  • 11
  • 3
  • If that's all you have in your `.htaccess` file then it would seen mod_rewrite is not enabled on your server, otherwise, there's nothing syntactically wrong with the directives as posted. – MrWhite May 27 '22 at 15:49
  • thanks for this information, but can u tell how can I check whether mod_rewrite is enabled in live server extension of vscode, as I am not using xampp or wamp – pooja May 27 '22 at 16:39

0 Answers0