New Install pretty url not working

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
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

New Install pretty url not working

Post 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.
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: New Install pretty url not working

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Re: New Install pretty url not working

Post 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?
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: New Install pretty url not working

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

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