Gossamer Forum
Home : Products : Gossamer Links : Discussions :

domain.com/link-title.html

Quote Reply
domain.com/link-title.html
I am aware of the method where Links SQL admin can have a dynamic directory and display url like www.domain.com/link-title-id.html but I was wondering if anyone know of the method where Links SQL admin can generate static pages like www.domain.com/detailed/link-title-id.html or www.domain.com/detailed/link-title-id.php ?

Thanks for the help.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] domain.com/link-title.html In reply to
~ anyone ~

I really need help in this one.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] domain.com/link-title.html In reply to
Have you tried using a rewrite rule?
Quote Reply
Re: [afinlr] domain.com/link-title.html In reply to
Hello Laura,

Are you referring to http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=216197 ?

Thank you for the all the help you have provided.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] domain.com/link-title.html In reply to
Yes. I think something like this should work (you may need to remove the red / depending on whether the rule is in httpd.conf or htaccess). I'm assuming that your static pages are in www.domain.com/Detailed/ID.html.

RewriteEngine on
RewriteRule ^/detailed/.*_L([0-9]+).html$ /Detailed/$1.html [L]

Last edited by:

afinlr: Sep 25, 2004, 1:49 PM
Quote Reply
Re: [afinlr] domain.com/link-title.html In reply to
In Reply To:
Yes. I think something like this should work (you may need to remove the red / depending on whether the rule is in httpd.conf or htaccess). I'm assuming that your static pages are in www.domain.com/Detailed/ID.html.

RewriteEngine on
RewriteRule ^/detailed/.*_L([0-9]+).html$ /Detailed/$1.html [L]

Hi Laura,

I am sorry, must be my mistake in not putting things in proper words.

I *do not* want to change my directory from static to dynamic (with static looking URL), but I actually want to generate/build static pages in a way that the detailed page url would like http://www.domain.com/...ed/link-title-id.php

I am also using few php codes on most pages within our directory and also having dynamic pages puts extra stress on the server and increases load time of the page during high traffic times.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] domain.com/link-title.html In reply to
This rewriterule should just rewrite the url of the static pages that include the title to the static pages that are built by Links. Changing the actual filenames will probably take a plugin - or pagebuilder maybe?