Page 1 of 1

Home page link

Posted: Sun 20 Mar 2011 9:25 am
by Bob Mason
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.

Re: Home page link

Posted: Sun 20 Mar 2011 3:32 pm
by John Smith
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