|
03-15-2005, 09:59 PM | #1 |
Orange Mole
Join Date: Jan 2005
Posts: 31
|
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. |
03-15-2005, 10:04 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
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'
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use variable in src tag | ravi | Coding & Tutorials | 1 | 06-15-2006 07:58 AM |
Undefined variable: user_agent | noel | Bug Tracker | 6 | 10-30-2005 05:32 PM |
Variable with the URL in it (in spider.php) | link92 | How-to Forum | 1 | 08-19-2004 02:14 PM |
Undefined Variable: $reg | blackfeather | Bug Tracker | 2 | 05-01-2004 12:02 PM |
Not recognising get variable pages | BCVisin | Troubleshooting | 7 | 04-15-2004 11:42 PM |