Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Static category pages, dynamic detailed pages

Quote Reply
Static category pages, dynamic detailed pages
I built the directory as .shtml static files. Is it possible to create detailed pages as dynamic, instead of them static?


If I delete few links, and search engines indexed those pages already, is there anyway in LinksSQL to redirect 404 pages to home page or any specific page?

thanks.
Quote Reply
Re: [hegu] Static category pages, dynamic detailed pages In reply to
Hi,

Rather than trying to do them as 2 different types, you could simply setup 301's for them:

Code:
Redirect 301 /Detailed/123.shtml http://www.yourmainsite.com

This should then tell google (and other search engines) that those pages no longer exist. Its a bit of a painful process... but if there are only a few links, it shouldn't be too bad :)

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Static category pages, dynamic detailed pages In reply to
No. What I want to know is - is it possible to have static CATEGORY .shtml pages (with link listings) and the detailed page from these listings pointed to dynamic detailed pages?
Quote Reply
Re: [hegu] Static category pages, dynamic detailed pages In reply to
You should be able to do it using the following in a .htaccess file:

Code:
RewriteEngine On

RewriteRule Detailed/([0-9]+)\.html /cgi-bin/links/page.cgi?g=Detailed/$1.html [L]

That will work for the detailed pages like /Detailed/1234.html

Then if thats working, you may as well comment out the code for building detailed pages. Around line 524 in nph-build.cgi, find (and add the bit in red):

Code:
# Only build validated links
$cond ||= GT::SQL::Condition->new;
$cond->add(VIEWABLE);
$cond->add('Timestmp','<',1);

That should force it to **not** build detailed pages (Which should save time on your builds)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Static category pages, dynamic detailed pages In reply to
Thanks Andy ...

Will update after trying this.
Quote Reply
Re: [hegu] Static category pages, dynamic detailed pages In reply to
Linksdql does not have category like urls?

Ex:
Code:
http://www.site.com/Detailed/123.html
will display as:
http://www.site.com/Detailed/123/

http://www.site.com/folder-here/folder-here/index.html
will display like:
http://www.site.com/folder-here/folder-here/

http://www.site.com/folder-here/folder-here/more2.html
will display like:
http://www.site.com/folder-here/folder-here/more2/
Quote Reply
Re: [hegu] Static category pages, dynamic detailed pages In reply to
You can customize it a bit more in GLinks 3.2+, but not in older versions. I'm not sure you would want to build detailed pages in the format of /Detailed/1234/ , as that could be a LOT of folders, each with a seperate file in Wink

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!