Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Permalinks and Dynamic URL's

Quote Reply
Permalinks and Dynamic URL's
Hi there Smile

I have a GLinks install that generates dynamic pages. I have set the following options in the Admin panels:

Setup->Build Options:

build_category_format = Full/Long Category/Name
build_detail_format = FullCategoryName/Title_LinkID


If I build the pages to make static pages, the URL's are correct, for example,
the United Kingdom's URL would look like this "http://myweb.com/Europe/United_Kingdom/[/url]".
But if I don't build the pages, the browser reports that that URL does not exist.

I can, however, view the page using "http://myweb/cgi-bin/ page.cgi?g=Europe/United_Kingdom/[/url]", but this is a bit nasty to display in the address bar.

So basically, I want the user to be able to enter a static page's URL and get a dynamic page.

Some-one told me GLinks takes care of this issue itself, but I can't seem to find the settings for it Unsure.
Or should I rather use rewrite rules?

Thank you Smile


Sacrifice is not about what you lose,
it is about what you gain in the process.
Quote Reply
Re: [EZFrag] Permalinks and Dynamic URL's In reply to
Hi,

Are you doing a Build> Build All (or Build Changed) ?? Tongue

BTW - wrong forum - I'll move this post for you.

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] Permalinks and Dynamic URL's In reply to
Hi Andy,

Yes, I did do a Build> Build All, but I don't know if the pages were still dynamic or not after that command...

Also, where do this kind of thread belong?Smile


Sacrifice is not about what you lose,
it is about what you gain in the process.

Last edited by:

EZFrag: Aug 20, 2008, 1:53 AM
Quote Reply
Re: [EZFrag] Permalinks and Dynamic URL's In reply to
Hi,

Doing a Build All, should make static pages. If it doesn't, then there is a problem somewhere =)

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] Permalinks and Dynamic URL's In reply to
The static pages are created, and works fine... I just wondered if there is a way to
create dynamic pages while keeping the "nice" URL's.

Thanks AndyWink


Sacrifice is not about what you lose,
it is about what you gain in the process.
Quote Reply
Re: [EZFrag] Permalinks and Dynamic URL's In reply to
Hi,

Ah ok =)

Well, you could do it via mod_rewrite:

.htaccess

Code:
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/linkssql/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/linkssql/page.cgi?p=$1 [L]
RewriteRule ^(.*).php /cgi-bin/linkssql/page.cgi?g=$1.php [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/linkssql/page.cgi [L]

Hopefully that will work for you =)

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] Permalinks and Dynamic URL's In reply to
Oh dear...

So image and stylesheet URL's are also affected?

*wipes a couple of lines from .htaccess*

Not fair Unsure

Ok, so I will have to do it the hard way then Smile

Thanks alot Andy, that helped. Wink


Sacrifice is not about what you lose,
it is about what you gain in the process.
Quote Reply
Re: [EZFrag] Permalinks and Dynamic URL's In reply to
Hi,

CSS files should be ok - you may even just be able to use:

RewriteRule static/(.+)$ /static/$1 [L]

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!