[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Sunday 19 August 2007 18:59, Dave Morgan wrote: > Hi, > about 6 months' back I deleted the /gallery/ directory > tree on my webserver, but MSNbot keeps trying to access it. So I > thought I would try out an .htaccess file, but I can't get it to > work correctly. I am trying to either stop the web-bots accessing > these files altogether (with the 410 code), or I might try > re-directing *all* /gallery/* addresses to /gallery2/main.php. > > My current .htaccess file - > > Redirect 301 /topmenu.html /topmenu.php > Redirect 301 /books-az.html /books.php > Redirect 301 /goodsinwards.html /gallery2/main.php/v/4801pics/ > Redirectmatch 410 ^(/gallery/)* > > The top three lines work, but the bottom line does not. > > What should I have put on the bottom line to get it to match all > paths starting /gallery/ ? > > best regards > Dave would a robots.txt file not be a better idea? Tom te tom te tom -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html