Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

[Suggestion] Search Engine Friendly GT v3.0 apps & URL translations

Quote Reply
[Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
New suggestion for the point 7.) posted in this thread:
http://www.gossamer-threads.com/...i?post=274811#274811

The GT v3.0 applications should be completely Search Engine Friendly, which means, that internally search engine friendly URLs are printed to the output page, like this:
http://www.gossamer-threads.com/forum/Category_C6/Forum_F17/Post_P277000/

Currently if I use a rewrite rule in Links SQL, then I can use it for incoming traffic (mainly for PR tasks), but NOT internally on the site. URLs on Links SQL website still looks like this:
http://gossamer-threads.com/perl/linkssql/page.cgi?g=Architecture%2FAssociations%2Findex.html;d=1
when links are displayed in dynamic mode.


GT v3.0 apps should have a "rewrite_rules_used" option.
Also there should be options for each used script & URL parameter, like param_g, param_d, script_page, script_add, etc...

We also set some other configuration variables, like:
rewrite_cgi-bin_dir => 'lsql'

For example a French Links SQL installation would use such (Search Engine Friendly) URL naming scheme:
Code:
$NAME = {
script_page => {
name => 'page',
param => {
g => 'category',
d => 'dynamique',
order => 'ordre',
sortby => 'sortepres',
page => 'page',
},
param_defaults => {
d => '1'
sortby => '1'
order => 'a'
},
param_order => [g,page,sortby,order]
},

script_add => {
name => 'ajoutez',
param => {
d => 'dynamique',
ID => 'identificator',
},
param_defaults => {
d => '1'
},
param_order => [d,ID]
},

script_search => {
name => 'recherche',
param => {
d => 'dynamique',
query => 'question',
bool => 'booleen',
substring => 'sous-chaine',
mh => 'maxpage',
},
param_defaults => {
d => '1'
},
param_order => [d,query,bool,substring,mh]
},
}

I listed just a few examples, and did not list all available options.
Note1: URL parameter orders are ordered based on 'param_order' arrayref.
Note2: Where parameter is not listed in 'param_order' or missing from the URL, then the 'param_defaults' value is assigned. This is useful for pages what we always use in Dynamic mode.
Note3: the page.cgi will not use the key=value format because the category paths, which are important to be search engine friendly

And the URLs would look like this:

  1. For search.cgi would look like:
    with rewrite_rules_used = OFF:
    http://mysite.fr/cgi-bin/search.cgi?dynamique=1&question=art&booleen=and&sous-chaine=0&maxpage=25
    with rewrite_rules_used = ON:
    http://mysite.fr/lsql/search/dynamique=1/question=art/booleen=and/sous-chaine=0/maxpage=25
  2. For add.cgi, similarly:
    with rewrite_rules_used = OFF:
    http://mysite.fr/cgi-bin/ajoutez.cgi?dynamique=1&identificator=12345
    with rewrite_rules_used = ON:
    http://mysite.fr/lsql/ajoutez/dynamique=1/identificator=12345
  3. For page.cgi, similarly:
    with rewrite_rules_used = OFF:
    http://mysite.fr/cgi-bin/page.cgi?dynamique=1&category=Architecture%2FAssociations%2Findex.html&
    page=2&sortepres=1&ordre=a
    with rewrite_rules_used = ON:
    http://mysite.fr/lsql/page/category/Architecture/Associations/page=2/sortepres=1/ordre=a/
    Note3: the page.cgi will not use the key=value format for category paths, which are important to be search engine friendly. The d=1 option can be left out, because d=1 is set as default value. The other options are placed at the end of category.


These URLs are displayed on the website like above, but the main job is done by the mod_rewrite, which is translating it to:
http://mysite.fr/cgi-bin/search.cgi?d=1&query=art&bool=and&substring=0&mh=25
and
http://mysite.fr/cgi-bin/add.cgi?d=1&ID=12345
So internally, in Links SQL, these URLs above are treated as usual.


This solution would solve 2 problems immediately:

  1. Full Search Engine Friendly website can be done, using Links SQL, and other GT applications.
  2. URLs can be fully translated for mother language of website owners. This will result more friendly international websites (in non-english countries).

It would be just a plus, if multiple languages would be supported in the URL parameters...


Please, GT staff, let me know if you accept/consider such features into v3.0 GT app developments.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations webmaster33 7630 Feb 27, 2005, 1:07 AM
Thread Re: [webmaster33] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
modifier 7301 Mar 12, 2005, 10:36 PM
Thread Re: [modifier] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
webmaster33 7296 Mar 12, 2005, 10:44 PM
Post Re: [webmaster33] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
Piers1 7273 Mar 13, 2005, 4:16 AM
Thread Re: [webmaster33] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
afinlr 7247 Mar 14, 2005, 5:32 AM
Thread Re: [afinlr] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
webmaster33 7247 Mar 14, 2005, 11:43 AM
Thread Re: [webmaster33] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
Alex 7212 Mar 14, 2005, 3:10 PM
Post Re: [Alex] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
webmaster33 7185 Mar 14, 2005, 4:39 PM
Thread Re: [webmaster33] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
afinlr 7185 Mar 14, 2005, 6:21 PM
Post Re: [afinlr] [Suggestion] Search Engine Friendly GT v3.0 apps & URL translations
webmaster33 7162 Mar 14, 2005, 6:29 PM