pretty urls and, cms admin panel

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
cristianR
Forum Members
Forum Members
Posts: 30
Joined: Wed Apr 14, 2010 7:39 pm

pretty urls and, cms admin panel

Post 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.
Last edited by cristianR on Wed Apr 21, 2010 5:21 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: pretty urls and, cms admin panel

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
cristianR
Forum Members
Forum Members
Posts: 30
Joined: Wed Apr 14, 2010 7:39 pm

Re: pretty urls and, cms admin panel

Post 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
Attachments
utf-8.jpg
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: pretty urls and, cms admin panel

Post by Rolf »

Do you have the {metadata} tag in your html template?

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
owr_bgld

Re: pretty urls and, cms admin panel

Post 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';
cristianR
Forum Members
Forum Members
Posts: 30
Joined: Wed Apr 14, 2010 7:39 pm

Re: pretty urls and, cms admin panel

Post 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
cristianR
Forum Members
Forum Members
Posts: 30
Joined: Wed Apr 14, 2010 7:39 pm

Re: pretty urls and, cms admin panel

Post by cristianR »

ok,, owr_web,  i am going to try,

thanks
cristianR
Forum Members
Forum Members
Posts: 30
Joined: Wed Apr 14, 2010 7:39 pm

Re: pretty urls and, cms admin panel

Post by cristianR »

thanks for your advice, its works now.
Locked

Return to “[locked] Installation, Setup and Upgrade”