PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Exclue url variable (http://www.phpdig.net/forum/showthread.php?t=1923)

djavet 03-15-2005 08:59 PM

Exclue url variable
 
Hello

I wish to index my portfolio (4images) and when I index, I've the page (per ex.) detail.php?id=444 That's ok, but I've also detail.php?id=444&mode=search

How can I specify to exclue mode=search?
I use robots.txt but can't find the synthax and think it's not possible.
Couldsomeone help me?

A lot of thx for your replies and time.

Regards;D om

PS: I use phpdig 1.8.7 and can't upgrade.

Charter 03-15-2005 09:04 PM

In the config file, add mode to the PHPDIG_SESSID_VAR constant.
Code:

define('PHPDIG_SESSID_REMOVE',true);        // remove SIDS or vars from indexed URLS
define('PHPDIG_SESSID_VAR','PHPSESSID,s');  // name of SID or variable to remove
                                            // can be 's' or comma delimited 's,id,var,foo,etc'



All times are GMT -8. The time now is 07:40 AM.

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