TheJoe.it Into the (open) source

6Jan/117

Use “.htaccess” to rewrite the extensions of the pages

php_html

In today's driving back to talk about ".htaccess", this time we will use the "mod_rewrite" to change the file extension to so that by making a request to "file.html" the request is turned to "file.php" without altering the URL.

Today's tutorial is very short and very easy. The following lines of code do all the work: