I am shutting down a website. I have deleted the wordpress site and the only page left in the domain is a page announcing the permanent shutdown of the site. The URL of the shutdown page is...
http://mydomain.co.uk/index.htm
there is also a folder containing 4 images (3x *.jpg; 1x *.gif). These images are a part of the shutdown page. Thus...
http://mydomain.co.uk/images/
When I enter a URL: mydomain.co.uk - the page 'mydomain.co.uk/index.htm' displays properly with the images in the page correctly displayed. The images in the page use this link type...
<img alt="Shutdown graphic" src="images/exampleimage.jpg" border="0" height="200" width="300" />
which works correctly.
However, I am trying to get all calls to 'mydomain.co.uk' to direct to the root folder and to display 'index.htm'. So, the following URLs would all then display 'index.htm'...
mydomain.co.uk
mydomain.com
mydomain.co.uk/anyfolder/
mydomain.co.uk/anyfolder/*.*
To achieve this I have tried this .htaccess file...
ErrorDocument 410 /index.htm
# Trigger a 410 Gone for all user requests
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^ - [G]
This file .htaccess file works correctly for all the URL types. However, it fails to display the images from the image folder in the shutdown page.
How can I modify the .htaccess file so it will allow the images to be displayed?
I have tried changing the link in the tag so the images are in the root directory, and also put the images in the root folder. Unfortunately, the .htaccess file still prevents the use of images.
It seems like the .htaccess file is preventing the use of the images in the index.htm file. If I remove the .htaccess file the page works properly again (with images) for mydomain.co.uk, but not for the other URLs.
Any ideas please?