Snippets has posted 5883 posts at DZone. View Full User Profile
// in this example *.html is replaced by *.php
// its a redirect [R] and it is is permanent (code is 301)
RewriteRule ^(.*).html$ $1.php [R=301]
RedirectMatch perm ^/the_directory/(.+)\.html$ http://host.example/$1.php
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...