static pages

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

static pages

Post by DarkJ »

Hi!
I have php-wcms 1.2.5 dev on my website.

It is possible to create static pages with phpwmcs?
For example:
/index.php?id=7,22,0,0,1,0 -> /7,22,0,0,1,0.html or similar

Thanks

PS: sorry for my bad english
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hallo DarkJ,

rename _htaccess to .htaccess
Switch at config.inc.php:
$phpwcms["rewrite_url"] = 1; //whether URL should be rewritable

http://www.phpwcms-docu.de/index.php?create_level
http://www.phpwcms-docu.de/index.php?ebene_erstellen


Aus: http://www.phpwcms.de/forum/viewtopic.p ... rewriteurl
Hi

also normalerweise funkrioniert das rewrite-Url ohne dass man am Code der index.php rumbastelt.

es muss in der conf.inc.php eingeschaltet werden
die _htaccess muss in .htaccess umbenannt werden
die .htaccess muss evtl. angepasst werden, wenn das System in einem Unterverzeichnis liegt
für die einzelnen Strukturebenen müssen Aliasse vergeben werden

das ist alles Idea
_________________
Horst
and have a look at this: http://www.phpwcms.de/forum/viewtopic.p ... rewriteurl

or please use the search function for: htaccess or/and rewrite_url.


Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

Post by DarkJ »

and is it possible change the .phtml format to .html format?
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

Yes, take a look: http://www.bodmer.biz
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

DarkJ wrote:and is it possible change the .phtml format to .html format?
But not recommended if you have other html files in the install folder...
http://www.studmed.dk Portal for doctors and medical students in Denmark
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

frold wrote: But not recommended if you have other html files in the install folder...
Yes, but you can use the .htm extension for other html files. This setting works fine for me.
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

Post by DarkJ »

well.. but how i can change the format from phtml to html?

thanks :)
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

DarkJ wrote:well.. but how i can change the format from phtml to html?
thanks :)
1. rename '_htaccess' to '.htaccess'
2. open 'config/phpwcms/config.inc.php' and enable rewritable url's: $phpwcms["rewrite_url"] = 1;
3. open .htaccess file and replace the '.phtml' extension with '.html'
4. open include/inc_front/front.func.inc.php and replace the '.phtml' extension with '.html'
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

Post by DarkJ »

thank you! :D
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

Post by DarkJ »

well... when i set the pages into .html format (for example index.html instead of index.phtml) i can't see the fckeditor... In fact instead of the editor i see the index.html in the iframe of the administration pages... :shock: :shock:

help me!
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

Unfortunately I never tested the fckeditor... but works fine with htmlarea.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Have you tried with index.htm :?:
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
DarkJ
Posts: 25
Joined: Sun 5. Jun 2005, 12:29
Contact:

Post by DarkJ »

StudioZ wrote:Have you tried with index.htm :?:
It's work fine! Thank you! :D
Post Reply