Webmastersite.net
Register Log In

Mod rewrite and static file generation

Comments on Mod rewrite and static file generation

piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004

Total Topics: 13
Total Comments: 44
piskedi
Posted Dec 24, 2004 - 3:48 PM:

I use mod rewrite for categories (with cat.names not numbers). I want to generate static copies of the categories. Is this possible? If yes, what should be the variable for the generation url? I think {CATSTATICNAME} wouldn't do it, because that's only used in generating HTML versions..

Sorry if I missed something about this.
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004

Total Topics: 13
Total Comments: 44
piskedi
Posted Dec 27, 2004 - 10:17 AM:

For one category named "Computers-Internet", I tried this:
URL of the static page:
http://localhost/wsn/Computers-Internet

Rename the page:
Computers-Internet.htm

Yes, the file is generated, but do I have to do this all manually for 49 more categories? There must be another way, but how?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 27, 2004 - 10:20 AM:

Generating static pages has nothing to do with mod_rewrite, so I really don't have any idea what you're talking about. {CATMODREWRITE} is the mod_rewrite path, but that has nothing to do with static pages (some category names would break a static file, and besides {CATSTATICPATH} exists for the purpose of static files, but you really shouldn't need to use that anywhere either since it's automatic, so I have no idea what you're doing).
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004

Total Topics: 13
Total Comments: 44
piskedi
Posted Dec 27, 2004 - 2:06 PM:

(I thought mod rewrite would affect the path to the cats, that's why I was asking about it,sorry.)
Ok, I only want to generate static versions of all categories, but I can't. That's all.

There are two areas in the admin/static file generation section:1)The URL of the page which the static version will be created, 2)Renaming the static page.

What should be the correct entry to these two fields, to generate static versions of all categories?

(Sorry if this sounds dumb, but I'm confused about this.I use a static index page, renamed to index.htm; and it works fine. I also want to generate static versions of each category. That's it. Hope this makes it clear?)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 28, 2004 - 6:09 PM:

The individual static page generation function is completely different from the generalized (and optionally automated) HTML generation. Read the manual entries.
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004

Total Topics: 13
Total Comments: 44
piskedi
Posted Dec 29, 2004 - 11:11 AM:

I did, but couldn't find anything directly about "static file generation". That is why I posted in the forum. When I search the term "static" in the manual, these are the results I get:
-Category Variables
-Allowed memory size of 8388608 bytes exhausted
-Maximum execution time of 30 seconds exceeded
-RSS Feeds
-JavaScript Export

Again, sorry if I'm missing something.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 30, 2004 - 8:55 AM:

I guess the help in the admin panel is all it has. Regardless, 'generate html' is for generating a static html copy of your directory. 'static file generation' is for individual pages.
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004

Total Topics: 13
Total Comments: 44
piskedi
Posted Dec 30, 2004 - 11:41 AM:

Hmm..So there's no easy way to generate static pages for all categories. I have to generate pages one by one for each category manually.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 01, 2005 - 11:11 PM:

Once again, the "Generate HTML" page is for generating a static version of the whole site (ie categories, comments and link details).
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.