I'm involved in the development of this script. I'd be curious to know what some SEO literate people think about it.

There are likely hundreds of sites running some prior version of it, since its based on PHPLinks but we have added some features like...
session ID supression on detected search engine spiders.
optional featured sites function w/ site thunbnails.
site reviews.

I can attest that the session ID supression works, since google completly spidered the working demo at
http://www.dew-code.com/links/

The primary function of a directory/link exchange package like this is to increase backlinks to the sites running it, but I'm curious, what other SEO methods might we be able squeeze in there? Latest version, currently 2.0.1.0B, is here
http://www.dew-code.com/modules/mydownloads/

What do you think? Is this worth continuing development on. or is there already something better out there w/ GPL liscensing?

Dani AI

Generated

Quick, practical companion for this thread: two things matter most for a link-directory script — (1) keep each logical page reachable under one canonical URL, and (2) keep listings editorially useful so the site is not just a churn of low-value link pages. 's point about URL hygiene is on target: when migrating query-string pages to SEF URLs, prefer server-side 301 redirects and explicit canonicals so search engines see one stable address per listing.
(developers.google.com)

Avoid cloaking while removing session IDs. Not printing a session token in links is fine so long as the human-visible content is identical to what search engines see. Do not show different page text or links to bots versus users. A safer approach is to (a) prefer cookie-based sessions, (b) 301-redirect sessionized URLs to their canonical SEF equivalents, or (c) add a rel="canonical" header on duplicate variants. Test redirects thoroughly to prevent loops.
Example canonical (place in the page head):

<link rel="canonical" href="https://example.com/directory/123-listing-name" />

Also consider a simple mod_rewrite rule to drop a session query string (test before use):

RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)sid=[^&]+ [NC]
RewriteRule ^ %{REQUEST_URI}? [R=301,L]

Cloaking / content differences are treated seriously by search engines. (developers.google.com)

Operational checklist to add into the script or installer:

  • Generate and submit an XML sitemap for listings and updates. (developers.google.com)
  • Qualify outgoing links: use rel="sponsored" for paid placements and rel="ugc" for user-submitted links; nofollow remains acceptable where appropriate. (developers.google.com)
  • Expose structured data for listings/reviews where relevant, enforce HTTPS, optimize thumbnails and caching, and monitor Core Web Vitals (LCP/INP/CLS) for page experience. (developers.google.com)

A directory that enforces unique descriptions, editorial review, and these technical controls stays useful for site owners and search engines; otherwise it risks becoming low-value aggregation.

Recommended Answers

All 2 Replies

I don't like your session ID suppression thing because there is nothing that google hates more than when they don't see what everyone else sees - i.e. you could get banned from google if google sees that a googlebot gets different URLs, text, etc. than a normal site visitor.

Also, I would just see if you could figure out a way to integrate mod_rewrite into your script to eliminate query strings? in URLs.

wow.. I had really hoped for more feed back by now..

Um, perhaps you are unaware, but not printing session IDs for bots is a totally rational thing to do, Google knows this. What you are reffering to is called cloaking, where bot detection triggers altered content. I assure you, not printing a session ID in an href is not penalized as intentionally cloaked sites are.

Also, a month or two after your response, Dew-NewPHPLinks SEF was released. Somewhat inspired by your response and the search engine friendly url feature from OSCommerce.

With thr SEF version, urls end with "directory/Cool.html" for the "Whats Cool" page and
"directory/7.html" for a sub/category page

I would rather have names than numbers, hopefully next release.

No one else has tried this script? I am saddened :( Well if you don't have the latest version bundled in your nearby Fantastico c-panel widget, drop on by dew-code.com

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.