• 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




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: URL Rewriting
PostPosted: Thu May 20, 2010 10:22 am 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
Hi All, please help.

Trying to set pretty URL and not succeeding.

Set the config.php, the .htaccess, cleaned cache from admin, restarted apache, restarted php.
There is  {metadata} in of template.
Also similar htaccess and installation in directory on the same site of ELXIS and MODX and SMF working with url rewriting.

Setup:
Fresh CMSMS MLE 1.7.1 install in default site : directory : c ( /var/www/c/ ). Ubuntu, apache2.

from config.php :
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '/';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'pg';

.htaccess :
RewriteEngine on

RewriteBase /c/

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

Thank you very much


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Thu May 20, 2010 10:28 am 
vim55k wrote:
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]


In my case it only worked with the two "[NC]" at the end of the lines


Top
  
 
 Post subject: Re: URL Rewriting
PostPosted: Thu May 20, 2010 10:44 am 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
Thanks, tried and still the same:

173.203.86.222/c/


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Fri May 21, 2010 10:59 pm 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
Thanks, changed to only c, without / and the same ...


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Sat May 22, 2010 8:07 am 
Online
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 5070
Location: The Netherlands
vim55k wrote:
from config.php :
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '/';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'pg';

.htaccess :
RewriteEngine on

RewriteBase /c/

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



Hi

You changed the 'page' to 'pg' in the config.php.
You need to change that also in the .htaccess!
Code:
RewriteRule ^(.+)$ index.php?pg=$1 [QSA]


Reg. Rolf  :)

_________________
Dutch CMSMS community website cmsms.nl and Wiki wiki.cmsms.nl
--------------------------
My CMSMS Tips and Tricks Weblog and website about Pneumatic Tube Systems / Rohrpost
My other (Dutch) website: Smakelijk eten zonder zout (Design: Compufairy)


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Sun May 23, 2010 9:13 pm 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
Changed the config to :
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '/';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'page';

Doesn't help.


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Sun May 23, 2010 11:22 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 6583
Location: Fernie British Columbia, Canada
replytomk3 you're wrong again.

_________________
Follow me on twitter
--
if you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Mon May 24, 2010 12:38 am 
Offline
Power Poster
Power Poster

Joined: Mon Jan 21, 2008 5:51 pm
Posts: 701
Location: MI
Rewrite is working. This link works: http://173.203.86.222/c/cmsms_tags

But what is your setup? are you running MLE? what is hl=ru_RU in the URLs created by CMSms?

_________________
Arvixe Hosting / CMSMS Community Liaison
Looking for quality CMSMS Hosting? Try Arvixe


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Mon May 24, 2010 10:42 pm 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
vim55k wrote:
Changed the config to :
$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6
$config['page_extension'] = '/';
$config['use_hierarchy'] = true; // this will be the standard from 1.7
$config['query_var'] = 'page';

Doesn't help.
calguy1000 wrote:
replytomk3 you're wrong again.



I changed the config to be similar to .htaccess -> page


ajprog wrote:
Rewrite is working. This link works: http://173.203.86.222/c/cmsms_tags

But what is your setup? are you running MLE? what is hl=ru_RU in the URLs created by CMSms?


I internal is working,but the external doesn't :
http://173.203.86.222/c/index.php/ru_RU/default_templates/cmsms_tags/
Yes I'm running MLE


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Tue May 25, 2010 12:22 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Thu May 14, 2009 8:11 pm
Posts: 1269
Location: Lithuania
vim55k: check '/doc/htaccess.mle' as well as '/doc/htaccess.txt'
And your links should look like 'http://173.203.86.222/c/ru_RU/default_templates/cmsms_tags/' (without 'index.php').

_________________
My best friends are: FAQ: How can I debug my code/site ?...showtemplate=false...module_customhow to create a patch, {process_pagedata}
And Yours ? :)


Top
 Profile  
 
 Post subject: Re: URL Rewriting
PostPosted: Sat May 29, 2010 12:03 am 
Offline
New Member

Joined: Thu May 20, 2010 10:08 am
Posts: 6
Thank you very much ! It is working !
All was because I posted not in the MLE section


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 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:  
A2 Hosting