URL Rewriting
URL Rewriting
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
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
Re: URL Rewriting
In my case it only worked with the two "[NC]" at the end of the linesvim55k wrote: RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
Re: URL Rewriting
Thanks, changed to only c, without / and the same ...
Re: URL Rewriting
Hivim55k 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]
You changed the 'page' to 'pg' in the config.php.
You need to change that also in the .htaccess!
Code: Select all
RewriteRule ^(.+)$ index.php?pg=$1 [QSA]
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: URL Rewriting
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.
$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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: URL Rewriting
replytomk3 you're wrong again.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: URL Rewriting
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?
But what is your setup? are you running MLE? what is hl=ru_RU in the URLs created by CMSms?
Re: URL Rewriting
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.
I changed the config to be similar to .htaccess -> pagecalguy1000 wrote: replytomk3 you're wrong again.
I internal is working,but the external doesn't :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?
http://173.203.86.222/c/index.php/ru_RU/default_templates/cmsms_tags/
Yes I'm running MLE
Re: URL Rewriting
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_t ... msms_tags/' (without 'index.php').
And your links should look like 'http://173.203.86.222/c/ru_RU/default_t ... msms_tags/' (without 'index.php').
Re: URL Rewriting
Thank you very much ! It is working !
All was because I posted not in the MLE section
All was because I posted not in the MLE section