Re: Pekna URL
Posted: Fri Apr 06, 2012 9:21 am
Proč nepoužíváš standardní postup z návodu?
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Vsetko som spravil podla navodu. Na localhoste nereaguje, a pri nahrati na server hadze chybu 500.Cody wrote:Takže tenhle náývod nefunguje? http://wiki.cmsmadesimple.org/index.php ... ty_URL.27s
Code: Select all
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]
Code: Select all
<?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';
?>
Code: Select all
Options +FollowSymLinks