Page 1 of 1

nezobrazuje sa detail novinky!

Posted: Thu May 19, 2011 9:29 pm
by Joseph777
zdravim

mam problem
po kliknuti na odkaz by sa mi mala zobrazit detail novinky ale miesto toho mi vyskoci chyba 404, url je ale http://www.domena.sk/news/1/39/News-Module-Installed/
takze htcacess je asi spravny nakolko pekne adresy stranok funguju a tiez funguje ked kliknem na odkaz na nejaku stranku (napr v menu) normalne ju zobrazi a aj s peknou adresou
pozn:
- modul news som preinstaloval nepomohlo
- v config mam nastaveny mod rewrite

Code: Select all

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off

#Options +FollowSymLinks

# To prevend E_STRICT problems with PHP 5.3+ you can uncomment the following lines
# Note: These settings should only be enabled for production sites!
#php_flag display_startup_errors 0
#php_flag display_errors 0
#php_flag html_errors 0
#php_value docref_root 0
#php_value docref_ext 0



<IfModule mod_rewrite.c>
RewriteEngine on

<Files "config.php">
    order allow,deny
    deny from all
</Files>


#
#Sub-dir e.g: /cmsms
RewriteBase /

RewriteCond %{HTTP_HOST} ^domena.sk
RewriteRule (.*) http://www.domena.sk/$1 [R=301,QSA,L]


RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.domena.sk/ [R=301,L]  

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /home\.php\ HTTP/
RewriteRule ^home\.php$ http://www.domena.sk/ [R=301,L]  

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]




Re: nezobrazuje sa detail novinky!

Posted: Fri May 27, 2011 8:16 pm
by Joseph777
takze nakoniec to funguje ale ked dam do sablony takyto zapis {cms_module module="news" number="5" category="beer"}

v povodnej sablone CMSMS NCleanBlue je v lavom menu
{news number='3' detailpage='news'}
a toto mi nefunguje ako som to vyssie popisal