Page 1 of 1

New Install pretty url not working

Posted: Wed Oct 20, 2010 12:08 pm
by pukka
hello just finished a fresh install of CMSMS and tried to configure pretty urls.

The page address comes up as it should (http://www.mysite.com/this/that.html) but it says page not found.

below are my settngs for config.php & htaccess:

config.php
--------------------------------------------------------------------
$config['url_rewriting'] = 'mod_rewrite';

$config['page_extension'] = '.html';

$config['use_hierarchy'] = true;

$config['query_var'] = 'page';
--------------------------------------------------------------------



htaccess
--------------------------------------------------------------------------------------------
# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#

RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /

#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#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 ^(.+).html$ index.php?page=$1 [QSA]

--------------------------------------------------------------------------------------------


Thanks.

Re: New Install pretty url not working

Posted: Wed Oct 20, 2010 12:15 pm
by Rolf
Hi Pukka,

A fresh install in a subfolder on your server perhaps?

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

Windows server? Try url_rewriting='internal'

Grtz. Rolf  :)

Re: New Install pretty url not working

Posted: Thu Nov 11, 2010 1:15 am
by pukka
Sorry for the delay.

I was not able to get it to work.

It is a Windows Server. So i tried url_rewriting='internal' but it didn't work.

The templates all have {metadata} in them.

The install is on the root of the website and not a subfolder.


Is there something wrong with my .htaccess settings?

Re: New Install pretty url not working

Posted: Thu Nov 11, 2010 9:53 am
by Rolf
pukka wrote: It is a Windows Server. So i tried url_rewriting='internal' but it didn't work.

The templates all have {metadata} in them.

The install is on the root of the website and not a subfolder.
Most of the times .htaccess doesn't work on a Windows server, so mod_rewrite is no option.
I would try it with Internal urls.

Do you have a link to this website?

Rolf