November 19, 2003


Okay, here’s a tip I need to remember. How to use mod_rewrite to redirect any request for an .asp page to its .html equivalent.

RewriteEngine on
RewriteBase /
RewriteRule ^(.+)\.asp$ $1.html [R=301,L]

This will come in so handy when I finally move my site over to PHP and Apache.

Filed under The Computer Vet Weblog

Comments (0)

Comments RSS - Write Comment

No comments yet

Write Comment