Page 1 of 1

pretty urls and, cms admin panel

Posted: Wed Apr 21, 2010 5:08 pm
by cristianR
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.

Re: pretty urls and, cms admin panel

Posted: Wed Apr 21, 2010 5:17 pm
by Rolf
Hello cristianR

Try to comment out this part first:

Code: Select all

#RewriteCond %{HTTP_HOST} ^en-obra.com.co$ [NC]
#RewriteRule ^(.*)$ http://www.en-obra.com.co/$1 [R=301,L]
Regards, Rolf

Re: pretty urls and, cms admin panel

Posted: Wed Apr 21, 2010 5:54 pm
by cristianR
:) thanks rolf , i can enter to the admin panel,

but the other issues ,the special caracteres, the pretty urls to the home page and other pages does not works,

just the module news works.

thanks for your advice

Re: pretty urls and, cms admin panel

Posted: Wed Apr 21, 2010 5:57 pm
by Rolf
Do you have the {metadata} tag in your html template?

Rolf

Re: pretty urls and, cms admin panel

Posted: Wed Apr 21, 2010 8:00 pm
by owr_bgld
maybe you have to set the 'locale' in the config.php - it solved my problem in German by setting UTF8.

The example for German:

Code: Select all

$config['locale'] = 'de_DE.UTF8';

Re: pretty urls and, cms admin panel

Posted: Thu Apr 22, 2010 3:04 pm
by cristianR
ok, rolf i have the {metada} tag  in my templates in to the

the pretty urls works good , but, the special caracteres does not work.

thanks

Re: pretty urls and, cms admin panel

Posted: Thu Apr 22, 2010 3:14 pm
by cristianR
ok,, owr_web,  i am going to try,

thanks

Re: pretty urls and, cms admin panel

Posted: Fri Apr 23, 2010 3:27 pm
by cristianR
thanks for your advice, its works now.