Jump to content

[SOLVED] change .php to .html


cmgmyr

Recommended Posts

NO you can use it for the whole site. However you will want to use a bit of regex. If all your files on contain characters from a-z then use this:

 

RewriteRule ^([A-Za-z]+).html$ $1.php

 

If you use file1.html then it will call file1.php if you use somethingelse.html it will call somethingelse.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.