• 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: przyjazny URL, problemy
PostPosted: Wed Jan 20, 2010 11:22 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 28, 2009 10:22 am
Posts: 15
czesc

mam kilka problemow z tymi przyjaznymi URLami

strone trzymam w podkatalogu cmssimple

./
--/cmssimple

plik htaccess

\$1:
  Options +FollowSymLinks
  RewriteEngine on
  RewriteBase /cmssimple
 
  # 301 Redirect all requests that don't contain a dot or trailing slash to
  # include a trailing slash
  # except for form POSTS
  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]


plik config.php

\$1:
#------------
#URL Settings
#------------

#What type of URL rewriting should we be using for pretty URLs?  Valid options are:
#'none', 'internal', and 'mod_rewrite'.  'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates.  For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'mod-rewrite';

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';

#$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
#$config['page_extension'] = '.html';
#$config['use_hierarchy'] = true; // this will be the standard from 1.7
#$config['query_var'] = 'page';
#$config['internal_pretty_urls'] = false;
$config['assume_mod_rewrite'] = true;


przyjazne URLe dzialaja

http://www.nazwastrony.pl/cmssimple/o-nas

ale linki w menu generuja sie w postaci
http://www.nazwastrony.pl/cmssimple/ind ... s&hl=pl_PL

dlaczego ?



ale jest gorszy problem
przyjazne URLe w newsach ...

przy wlaczonym $config['url_rewriting'] = 'mod-rewrite'; adresy newsow wygladaja w kosmicznej postaci
\$1:
index.php?mact=News,cntnt01,detail,0&cntnt01articleid=1&cntnt01origid=74&cntnt01returnid=83&hl=pl_PL

???

przy wlaczonym $config['url_rewriting'] = 'internal'; jest lepiej ale tez cos nie tak
index.php/pl_PL/news/1/83/temat-wiadomosci/

natomiast przy zadnym z tych dwoch ustawien nie dziala dla Newsow adres w postaci
http://www.nazwastrony.pl/temat-wiadomosci/


Last edited by korneliusz on Wed Jan 20, 2010 11:30 am, edited 1 time in total.

Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: przyjazny URL, problemy
PostPosted: Fri Mar 05, 2010 7:43 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sun Oct 28, 2007 1:15 pm
Posts: 100
Location: Poland, Warsaw
Co do linków generowanych przez menu: Prawdopodobnie jest to wina modułu wielojęzyczności, który doinstalowałeś.

Co newsów: przeszukaj tematy w dziale Tips and Tricks. Ja znalazłem to: http://forum.cmsmadesimple.org/index.php?topic=24968.0

_________________
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: przyjazny URL, problemy
PostPosted: Fri May 07, 2010 1:32 pm 
Offline
New Member
New Member

Joined: Fri May 07, 2010 1:31 pm
Posts: 2
\$1:
#configurations. 'mod_rewrite' requires proper apache configuration, a valid


a Ty wpisałeś:
\$1:
$config['url_rewriting'] = 'mod-rewrite';


widzisz różnice?


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:  
cron
Hosting Nation - Managed CMSMS Hosting