|
02-10-2005, 09:49 AM | #1 |
Green Mole
Join Date: Feb 2005
Posts: 11
|
Phpdig producing multiple results
Having a problem with phpdig producing multiple results of the same page. In the results the url to the page has a bunch of folders appended to the end such as: http://www.ascential.com/litlib/qa_davis.html/customers/
customers/customers/customers/customers/ As you can see the /customers/ gets appended to the url multiple times. Any insight to what may be causing th is? Thanks, -Marc |
02-10-2005, 03:13 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
The appending of /customers/ is probably coming from the menu. PhpDig doesn't know that when it sees <a href="/customers/" ...> you really mean it to be <a href="http://www.ascential.com/customers/" ...> so PhpDig treats it as a subdirectory of the current page, whatever that page may be. To tell PhpDig to treat relative links as if they were coming from a different place, and not the currect page, try sticking a base href tag in the head portion of the HTML. Note though that this will treat all relative links as if they were coming from whatever link is provided in the base href tag.
HTML Code:
<base href="http://www.ascential.com/" /> <!-- or --> <base href="http://www.ascential.com/dir1/" /> <!-- or --> <base href="http://www.ascential.com/dir1/dir2/" />
__________________
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. |
02-11-2005, 06:49 AM | #3 |
Green Mole
Join Date: Feb 2005
Posts: 11
|
Thanks. That seems to have resolved the problem. Much appreciated.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Phpdig indexing including HTML in results | Mrsoft | Troubleshooting | 1 | 09-28-2004 05:23 AM |
Title of the results - how to change from <phpdig:page_link/> | bforsyth | How-to Forum | 12 | 07-15-2004 09:53 PM |
PhpDig spiders included menu: wrong results | nicor | Troubleshooting | 3 | 03-25-2004 05:58 AM |
phpdig search results turbo | tomas | Mod Submissions | 1 | 02-11-2004 09:31 PM |
Searchfeed results displayed with phpdig results | Nosmada | How-to Forum | 1 | 01-04-2004 12:39 PM |