Home page link

If you have a question or comment about the forum or the web site you can post it here.

Moderator: John Smith

User avatar
Bob Mason
Contributor
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

Postby Bob Mason » Sun 20 Mar 2011 9:25 am

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.
Image
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.

User avatar
John Smith
Moderator
Moderator
Posts: 1940
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

Postby John Smith » Sun 20 Mar 2011 3:32 pm

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
John


Return to “Help and Advice”

Who is online

Users browsing this forum: No registered users and 1 guest