Gossamer Forum
Quote Reply
Force dynamic_preserve
Hi,

I run my site in Dynamic mode only - is there a way to force/ensure that no pages ever get out of dynamic mode?

(ie event if a user decides to remove the d=1 in the url :-)

I would like if I could get rid of the &d=1 in the url nut ensure dynamic_preserve...

Any suggestions

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Force dynamic_preserve In reply to
I think this would need to be done through a simple plugin (hook into user_page in Links.pm, I guess).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [klauslovgreen] Force dynamic_preserve In reply to
If you're on a dedicated server you could use rewrite rules to redirect the static urls to dynamic ones.

Laura.
The UK High Street
Quote Reply
Re: [afinlr] Force dynamic_preserve In reply to
Since page.cgi drives the site, just edit page.cgi to set d=1 whenever the script runs.

You can also edit SiteHTML.pm to do the same thing when eval'ing a page. That should catch most, if not all, instances.

I've asked alex about this before. He said he had a reason to change the default d=1, but couldn't remember why exactly. I had to do some major editing on my sites when this happened.

I've been thinking about a tiny plugin that would create a new admin setting that would force d=1, but it would be really nice if there was a default option that would allow you to chose d=1 or d=0 for your site.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Force dynamic_preserve In reply to
Hi,

I agree I can eaily catch most of the cases - trouble is - if you miss one - the entire site suddenly becomes static ...

re-write rules is something we will be using for sure - would that catch all instances for sure?

I'll ask GT to make a plugin if re-write rules is not 100%

Thanks for your advise in this

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Force dynamic_preserve In reply to
Re-write rules should catch everything.
Quote Reply
Re: [Paul] Force dynamic_preserve In reply to
Problem with rewrite rules, is you don't have the control, and that can lead to problems if the server goes off-line, for example and you don't have proper pages in place.

The scripts are the problem, and logical solution is to alter the scripts, not the site.

Rewrite rules are good for many things, but I don't like them for this particular problem.

By altering/fixing the scripts, you have attacked the root/cause of the problem, not put a bandaid across it, or passed the buck.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Force dynamic_preserve In reply to
Hi Pugdog.

Could you elborate a bit on this - not quite following you?

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Force dynamic_preserve In reply to
In Reply To:
I'll ask GT to make a plugin if re-write rules is not 100%

hi klaus

did you ever manage to get this figured out?

would be interested to hear your solution.

regan
Quote Reply
Re: [ryel01] Force dynamic_preserve In reply to
Hi Regan,

Yes - re-write rules did the trick - no plugin was required.

Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Force dynamic_preserve In reply to
any chance you could post the rule?
Quote Reply
Re: [ryel01] Force dynamic_preserve In reply to
Hi Regan,

It depends on what you need - we have a customized setup specific to our needs.

There is a lot of info in re-write rules in this forum - so I suggest you look around.

Cheers
Klaus

http://www.ameinfo.com