Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Dynamically static url's

Quote Reply
Dynamically static url's
I am having little question and was wondering if anyone knows how can it be done (I believe using .htaccess/mod_rewrite it can be done, but I am no good at it)

Dynamically static url's so it wont' take up tons of disk space for creating static pages and doing this will enable links sql users to use the wonderful features of dynamic part/view.

Thanks for the help.

Need Scripts

Vishal
-------------------------------------------------------
Quote Reply
Re: [NeedScripts.Com] Dynamically static url's In reply to
http://www.gossamer-threads.com/...od_rewrite+.htaccess

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: [NeedScripts.Com] Dynamically static url's In reply to
Hi,

I set up my Links SQL to build my detailed pages in a directory called 'profile' in the main root directory. I am using the following in an .htaccess file in the root directory:

RewriteEngine On
RewriteRule ^profile/([0-9]+) /links/page.cgi?g=Detailed/$1.html


This lets search engines index the simple URL such as:
http://www.domain.com/profile/99.html

and the content of the page will actually be the dynamic version:
http://www.domain.com/links/page.cgi?g=Detailed/99.html

That way I don't need to statically build thousands of detailed pages, and the URL still remains search engine friendly. Also, when links get deleted, I don't need to FTP to the server and manually delete the static detailed page which is then no longer valid.

My question is the case when a link is deleted. With the above arrangement, if the Link with ID#99 is deleted and you try to go to that page, it then shows the Links SQL Error page (from the error.html template) which says that it can't find the detailed page detailed/99.html. But I would rather that it reacted with a 404 Not Found error that happens when you enter a url for a static page that doesn't exist (I want to do this so that the search engines don't wind up with a bunch of my error pages indexed). Does anyone know if that's even possible?



--Frank
Quote Reply
Re: [FrankM] Dynamically static url's In reply to
Frank,

I feel this is not possible. I researched a lot and could not find a way out. Maybe someday someone comes with a solution posted as a reply below. :-)

Nakul Goyal
www.nakulgoyal.com
SEO, SEP, SEM and Link Building Expert
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News


Quote Reply
Re: [nakulgoyal] Dynamically static url's In reply to
That's a module for apache.

--> mod_rewrite

You can get help from following :

--> http://httpd.apache.org/docs-2.1/en...od_rewrite.html
--> http://www.sitepoint.com/article/910/1
--> http://razertech.com/edge/web/modrewrite-1.htm

__________________

Megrisoft
Web Hosting Company
India Software Company
SEO Company


Quote Reply
Re: [megri] Dynamically static url's In reply to
Yup. I know. I have implemented this at several sites of mine now. :-)
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News