Cookie Into the (open) source


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

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: