Posted by David Dorward on 02/28/06 09:54
John wrote:
> Question: Is there a way whereby I can create a page with an "shtml"
> extension, using a wild card character such as * (*.shtml" for
> example) , and install it on the current site so that those who follow any
> outdated link with an "shtml" extension would go to that page?
If you have Apache you could do something like:
RedirectMatch permanent ^(.*)shtml http://www.example.com/$1.html
(Note that that is untested, from memory, and I haven't used RedirectMatch
very much, so you might have to resort to the manual).
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|