Description: Allows filename to have a custom extension (e.g., 'page.php' to 'page.wcet')
Filename must be called .htaccess, which is the filename that will allow your pages to be rewritten with other extensions.
RewriteRule ^([a-zA-Z0-9_-]+)\.wcet$ $1.php
#The rules above mean that any .php can be rewritten as a ".wcet" file
#Example: page.php can be rewritten as page.wcet
#The ".wcet" extension is just an example; it can be changed to something else.
, file that will be rewritten with any extension you want.
echo 'This is the page that should be able to be rewritten.
<a href="page.wcet">See the URL rewritten.</a> ';
(Optional in case you want a reply)
Views: 537 Downloads: 22