• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem z przyjaznymi linkami - galeria.
PostPosted: Fri Feb 24, 2012 8:23 am 
Offline
New Member
New Member

Joined: Fri Feb 24, 2012 8:16 am
Posts: 4
Witam,

dokonałem zmian dotyczących przyjaznych linków - wszystko działa wspaniale prócz galerii

otóż

href wygląda tak http://xxx.xxx.xxx/gallery/strony/10-9-66.html

po przejsciu na tą stronę wyświetla - brak strony.
\$1:
Not Found

The requested URL was not found on this server.


Oczywiście wszystkie podstrony prócz galerii działa idealnie.

pliki:
.htaccess
\$1:
# BEGIN Optional settings

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file.  This may also break other programs you have running under your CMSms
# install that use config.php.  You may need to add another .htaccess file to those
# directories to specifically allow config.php.
<Files "config.php">
order allow,deny
deny from all
</Files>

# Sets your 403 error document
# not absolutely essential to have,
# or you may already have error pages defined elsewhere
ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on

RewriteEngine On

# Might be needed in a subdirectory
#RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS

# END Rewrite rules


config.php
\$1:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'xx';
$config['db_username'] = 'xx';
$config['db_password'] = 'xx';
$config['db_name'] = 'xx';
$config['db_prefix'] = 'cms_';
$config['db_port'] = 0;
$config['root_url'] = 'http://webpro29.hekko.pl';
$config['timezone'] = 'Europe/Warsaw';
$config['default_encoding'] = 'utf-8';
$config['assume_mod_rewrite'] = true;
$config['internal_pretty_urls'] = true;
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true; // no longer in the config file
$config['query_var'] = 'page';
?>


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Problem z przyjaznymi linkami - galeria.
PostPosted: Sun Feb 26, 2012 4:16 pm 
Fajny opis wszystkich opcji przekierowań i ustawień "pretty urls" można znaleźć tutaj: http://wiki.cmsmadesimple.org/index.php/User_Handbook/Installation/Optional_Settings. Po angielsku.

W skrócie - w najnowszych wersjach CMS MSa są dwa tryby. Jeden jest "wewnętrzny", drugi - "mod_rewrite", oparty o .htaccessa. By dobrze i jednolicie skonfigurować serwis trzeba poeksperymentować z ustawieniami, min. spróbuj

$config['assume_mod_rewrite'] = true;

zmienić na false.

W jednej z moich produkcji problemem (o identycznie wyglądających wynikach) - była ścieżka. W .htaacess jest parametr

RewriteBase /

Jak strona jest w podkatalogu, też warto to uwzględnić.

Nie wiem, czy pomogłem. Jak nie - daj bezpośredniego linka do serwisu z problemem, czasem coś łatwiej wtedy wywnioskować i popróbować.


Top
   
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Problem z przyjaznymi linkami - galeria.
PostPosted: Mon Feb 27, 2012 10:27 am 
Offline
New Member
New Member

Joined: Fri Feb 24, 2012 8:16 am
Posts: 4
Zmiana atrybutu na false nic nie pomogla. Oczywiscie strona nie jest w podkatalogu

adres to http://webpro29.hekko.pl/portfolio/stro ... etowe.html


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting