|
Posted by Alan Cole on 02/28/06 13:34
In article <eam702dhp7gsdo20cj9q65c249342g2h1t@4ax.com>,
"John <><" <nospam@nospam.ca> wrote:
> Problem:
>
> I'm looking after a web site (myjourney.ca) which WAS hosted on site, using a
> program (Article Manager) where all pages had the "shtml" extension.
> Many of these pages are still indexed in various search engines.
> So far, during February I have had well over a 1000 hits in almost 400
> sessions
> to these now "non-existing" pages, resulting in potential browsers getting a
> "Not Found" message (The requested URL /mainpage.shtml was not found on this
> server.).
>
> We changed to a different system, (the domain name remains the same) and all
> pages now have the "html" extension.
>
> 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?
>
> Thanks for any help and suggestions!
> John <><
If your site is hosted on an Apache server you could just use the
mod_rewrite rule within your htaccess file to rewrite the URL.
In its simplest form:
RewriteEngine on
RewriteRule ^(.*)\.shtml$ $1.html
in your htaccess file should do the trick. (assuming that the filenames
have remained the same and it is just the extensions that have changed.
Al.
--
Alan Cole. E-mail: justal at lineone dot net
http://www.forces-of-nature.co.uk [Coastal Sports]
http://www.pixelwave.co.uk [Website Design, hosting and promotion]
Navigation:
[Reply to this message]
|