You are here: Re: Wild card symbol in name? « HTML « IT news, forums, messages
Re: Wild card symbol in name?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация