Page 1 of 1

static pages

Posted: Sat 1. Oct 2005, 15:11
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

Posted: Sun 2. Oct 2005, 07:49
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

Posted: Fri 7. Oct 2005, 12:27
by DarkJ
and is it possible change the .phtml format to .html format?

Posted: Fri 7. Oct 2005, 12:40
by Goran
Yes, take a look: http://www.bodmer.biz

Posted: Fri 7. Oct 2005, 13:04
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...

Posted: Fri 7. Oct 2005, 13:18
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.

Posted: Sun 9. Oct 2005, 13:08
by DarkJ
well.. but how i can change the format from phtml to html?

thanks :)

Posted: Sun 9. Oct 2005, 15:25
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'

Posted: Sun 9. Oct 2005, 23:04
by DarkJ
thank you! :D

Posted: Fri 14. Oct 2005, 21:37
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!

Posted: Fri 14. Oct 2005, 23:19
by Goran
Unfortunately I never tested the fckeditor... but works fine with htmlarea.

Posted: Fri 14. Oct 2005, 23:47
by StudioZ
Have you tried with index.htm :?:

Posted: Sat 15. Oct 2005, 11:57
by DarkJ
StudioZ wrote:Have you tried with index.htm :?:
It's work fine! Thank you! :D