June 15, 2003

Redirection of pages with .htaccess

I've discovered the joys of the .htaccess file! As I moved across the asp files to this server, based on php, all the asp pages no longer exist. Using the .htaccess I can set up a permanent redirection to the equivalent .php file. All i've got to work out is how to use wild cards so I could redirect *.asp to *.php....
In the meantime you can check that the original email address page works.
Update .asp to .php works by adding the line

   RedirectMatch (.*).asp$ http://absoblogginlutely.net$1.php

and I've also sorted out MTblogs to redirect the .html files to .php ones using

   RedirectMatch (.+)blogarchive/(.+).html http://absoblogginlutely.net$1blogarchive/$2.php

Posted by Andy at June 15, 2003 4:03 PM