When I write web pages I use .htaccess to get around any problems with DNS and reluctant servers. The code looks like this;
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somesite.com/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.somesite.com/nasty.ginasty.gif [R,L]
All you need to do is substitute your correct URL in the bottom line and the preceeding lines and the code will convert any combination of upper and lower case and even some spelling mistakes to your correct URL.
Home page link
Moderator: John Smith
- Bob Mason
- Contributor
- Posts: 29
- Joined: Wed 23 Dec 2009 10:26 am
- Keratoconus: No, I don't suffer from KC
- Vision: I don't have KC
- Location: Wakefield UK
Home page link

Today is not soon enough to do what should have been done yesterday - at least that is what my Granny used to say. Trouble is I need a 26 hr day and a nine day week just to keep up.
- John Smith
- Moderator
- Posts: 1941
- Joined: Thu 08 Jan 2004 12:48 am
- Keratoconus: Yes, I have KC
- Vision: Graft(s) and spectacles
- Location: Sidcup, Kent
Re: Home page link
Hi Rob,
Thanks for posting that Apache rewrite rule - not sure how that would help us out, though. People shouldn't really be deep-linking to the site, and the home page link is only missing because of a temporary bug in the phpBB template.
Regards,
John
Thanks for posting that Apache rewrite rule - not sure how that would help us out, though. People shouldn't really be deep-linking to the site, and the home page link is only missing because of a temporary bug in the phpBB template.
Regards,
John
John
Who is online
Users browsing this forum: No registered users and 4 guests