pretty urls and, cms admin panel
Posted: Wed Apr 21, 2010 5:08 pm
Well, i try to display the pretty urls, with this code in, the .htaccess.
#Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com.co$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com.co/$1 [R=301,L]
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
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]
and in the config.php
change the following lines,
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
Before putting the pretty urls the format utf-8 works, but after putting the code for the pretty urls stops working.
and just the news works for the pretty urls.
the other pages, doesnot works the pretty urls
i can´t enter to the admin panel in cms 1.7
thanks for your advice.
#Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com.co$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com.co/$1 [R=301,L]
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
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]
and in the config.php
change the following lines,
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.htm';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
Before putting the pretty urls the format utf-8 works, but after putting the code for the pretty urls stops working.
and just the news works for the pretty urls.
the other pages, doesnot works the pretty urls
i can´t enter to the admin panel in cms 1.7
thanks for your advice.