CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Pekna URL
https://forum.cmsmadesimple.org/viewtopic.php?f=42&t=29827
Page 3 of 3

Author:  Cody [ Fri Apr 06, 2012 9:21 am ]
Post subject:  Re: Pekna URL

Proč nepoužíváš standardní postup z návodu?

Author:  ferdo93 [ Fri Apr 06, 2012 9:34 am ]
Post subject:  Re: Pekna URL

Skusal som aj ten, ale ignoruje to. Do suborov to davam spravne? Pretoze v konfigu uz nejaky kod je, iba som pridal dalsi.

Author:  Cody [ Fri Apr 06, 2012 11:05 am ]
Post subject:  Re: Pekna URL

Takže tenhle náývod nefunguje? http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s

Author:  ferdo93 [ Fri Apr 06, 2012 11:46 am ]
Post subject:  Re: Pekna URL

Cody wrote:


Vsetko som spravil podla navodu. Na localhoste nereaguje, a pri nahrati na server hadze chybu 500.

Author:  Cody [ Fri Apr 06, 2012 12:42 pm ]
Post subject:  Re: Pekna URL

Viděl bych pak asi problém v instalaci a nastavení serveru, když zkusíš dát čistou instalaci na server? Mě to totiž vždy fungovalo.

Author:  ferdo93 [ Fri Apr 06, 2012 5:23 pm ]
Post subject:  Re: Pekna URL

Je to cista instalacia. Iba 1 template bol do cms nakopirovany. Server je plateny, podporuje apache a mod_rewrite. Chyba bude asi u mna. .htaccess je:
Code:
 Options +FollowSymLinks
  RewriteEngine on
  RewriteBase /

  RewriteCond %{REQUEST_URI} !/$
  RewriteCond %{REQUEST_URI} !\.
  RewriteCond %{REQUEST_METHOD} !POST$
  RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
 
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ index.php?page=$1 [QSA]


a config vyzera presne tak:
Code:
 <?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
...
  # cool url
  $config['url_rewriting'] = 'mod_rewrite';
  $config['page_extension'] = '.html';  or some other extension, .php, .asp
  $config['use_hierarchy'] = true;
  $config['query_var'] = 'page';
?>


Pri configu hodi syntax error, a pri .htaccess internal error.

Author:  radoado [ Fri Apr 06, 2012 8:12 pm ]
Post subject:  Re: Pekna URL

Zkus v .htaccess zakomentovat
Code:
Options +FollowSymLinks

Některým hostingům se tato volba "nelíbí" a vyhazují "500 Internal Server Error"

Author:  ferdo93 [ Fri Apr 06, 2012 8:45 pm ]
Post subject:  Re: Pekna URL

Problem solved. Vdaka za rady.

Page 3 of 3 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/