RewriteEngine On RewriteBase /the_directory RewriteRule ^(.*).html$ $1.php [R=301]
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
rewrite extension (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Suexec'ed PHP-FastCGI on Apa... in apache php fastcgi suexec
» Mixed example of mod_deflate... in apache mod_deflate httpd.conf
» Serve XHTML 1.1 Properly in apache httpd.conf xhtml
» Getting a copy of a x509 cer... in apache ssl openssl certifcates
» A simple WebDAV repository w... in apache httpd.conf webdav
» mod_rewrite rules to serve a... in apache xhtml modrewrite mimetype htaccess
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails