PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Change user-agent name (http://www.phpdig.net/forum/showthread.php?t=2526)

Samar 07-31-2006 11:43 AM

Change user-agent name
 
I have a website in english and french and I want to have 2 phpdig installation, one to search the french pages and one for the english pages.

I want to block access to the english pages to the french phpdig and vice versa in my robots.txt file.

For example my robots.txt would look like :

Code:

#phpdig for english pages
User-agent: PhpDig
Disallow: /fr/
#phpdig for french pages
User-agent: PhpDigFr
Disallow: /en/

I have read some post on how to change the user-agent name and I've changed the robot_functions.php and spider.php files without success.

Any help would be much appreciated.

mickres 08-14-2006 10:33 PM

I think you have to change the user agent name for the english pages too (PhpDigEn for example). Change it in your english phpdig installation also.


All times are GMT -8. The time now is 05:45 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.