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

All dynamic site rewrite to static URLs

Quote Reply
All dynamic site rewrite to static URLs
Hi

I'm having a great deal of fun discovering the ins and outs of rewrite rule and I thought I only had one two issues left...

I want to have a dynamic site using rewrite on look static. So I’ll have page.cgi and other scripts dynamically creating the pages and rewrite on will create URLs that look static.

I came across the issue that if I used d=1 to indicate I wanted dynamic pages that I couldn’t get the rewrite rules to work properly. For example when I generate www.sitename.com/mag/articles/article_name_L1.html with no d=1 then I get this exact link and it works but if the page linking to it has d=1 activated then I will get www.sitename.com/cgi-bin/page.cgi?g=mag/articles/article_nameL1.html;d=1 instead.

Now however I’m realizing that this may just become unrealistic in that I have both category.html and new.html and maybe others that are generating files that are either dynamic when I use d=1 (with the above issues) or static and don’t point to the right place since I only have dynamically generated pages….

For example for the category “others” I will have in category.html without d=1 :
www.sitename.com/others/index.html
whereas I’d like to have :
www.sitename.com/mag/others/index.html
so that my rewrite rule kicks in:
RewriteRule ^/mag/(.*)$ /cgi-bin/page.cgi?g=$1

but I'm guessing this will lead me down a road where I need to modify the core code in order to be able to have the whole site dynamically created but to look static.
I was thinking I could also to a redirect of :
/others/* to /mag/others so that then the rewrite on would kick in but it seems a bit of an overkill server-side.

I’m wondering whether a) I’ve got the wrong rewrite rules and that there is a way to have d=1 activated or b) I’m looking at this the wrong way or c) the dynamic cloaked solution is not going to work ?

Any wise advice would be greatly appreciated

Thanks, John
Significant Media
Subject Author Views Date
Thread All dynamic site rewrite to static URLs Jag 13008 Mar 29, 2005, 4:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 12904 Mar 29, 2005, 5:52 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 12899 Mar 29, 2005, 6:20 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 12897 Mar 29, 2005, 7:12 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
pugdog 12870 Mar 29, 2005, 9:49 PM
Thread Re: [pugdog] All dynamic site rewrite to static URLs
Alex 12843 Mar 29, 2005, 11:15 PM
Post Re: [Alex] All dynamic site rewrite to static URLs
pugdog 12774 Mar 30, 2005, 11:44 AM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 12818 Mar 30, 2005, 2:57 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12683 Apr 14, 2005, 6:34 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12703 Apr 14, 2005, 6:52 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12749 Apr 14, 2005, 8:00 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12721 Apr 14, 2005, 8:13 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12761 Apr 14, 2005, 8:28 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12725 Apr 14, 2005, 8:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12684 Apr 14, 2005, 8:56 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12714 Apr 14, 2005, 9:04 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12691 Apr 14, 2005, 9:07 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12689 Apr 14, 2005, 9:36 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 12656 Apr 15, 2005, 12:26 AM
Thread Re: [afinlr] All dynamic site rewrite to static URLs
rgbworld 12659 Apr 15, 2005, 6:08 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12653 Apr 15, 2005, 5:02 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12653 Apr 15, 2005, 5:19 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12659 Apr 15, 2005, 6:08 PM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
Andy 12568 Apr 16, 2005, 5:22 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12682 Apr 16, 2005, 12:37 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
ccunet 3384 Apr 16, 2005, 2:38 PM
Thread Re: [ccunet] All dynamic site rewrite to static URLs
Jag 3322 Apr 18, 2005, 4:15 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
aus_dave 3317 Sep 1, 2005, 7:50 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 3434 Apr 17, 2005, 9:43 AM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 3397 Apr 17, 2005, 11:10 PM