Using mod_rewrite with .html extension

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
netbuddy
New Member
New Member
Posts: 3
Joined: Wed Nov 19, 2008 2:05 am

Using mod_rewrite with .html extension

Post by netbuddy »

Hi,

Installed the software and everything was going groovy until i tried to enable SEF urls.

I set the parameters as follows in the config.php

$config['assume_mod_rewrite'] = true;


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


$config['internal_pretty_urls'] = false;


$config['use_hierarchy'] = true;


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

I uploaded the .htaccess file in the documents folder that comes with the installation scripts without any changes at all.

I couldnt access my admin area, not the main page of the site,

403 Forbidden errors.

Im using version 1.4.1, Apache 2.2.6, Litespeed Web Server, not sure what php version but id imagine the latest.

Any help would be great, for the time being ive reverted back to the standard install without SEF.
alby

Re: Using mod_rewrite with .html extension

Post by alby »

netbuddy wrote: I uploaded the .htaccess file in the documents folder that comes with the installation scripts without any changes at all.
I think that htaccess in doc folder is relative to empty $config['page_extension']
Look in Documentation and in your error server log

Alby
netbuddy
New Member
New Member
Posts: 3
Joined: Wed Nov 19, 2008 2:05 am

Re: Using mod_rewrite with .html extension

Post by netbuddy »

Tried it again, left out the .html, no differance, still forbidden error
faglork

Re: Using mod_rewrite with .html extension

Post by faglork »

Hi!

What  is in your error_log ?

Cheers,
Alex
netbuddy
New Member
New Member
Posts: 3
Joined: Wed Nov 19, 2008 2:05 am

Re: Using mod_rewrite with .html extension

Post by netbuddy »

I managed to fix it, was my silly fault. I was uploading the wrong .htaccess to begin with, it was a comedy of errors, too many loose files from too many half completed projects. But now its all fixed.

The next step is finding a good template. I checked the full templates area, and they appear to be a bit thin on the ground.
faglork

Re: Using mod_rewrite with .html extension

Post by faglork »

netbuddy wrote: The next step is finding a good template. I checked the full templates area, and they appear to be a bit thin on the ground.
Well, basically, you rarely need other templates than the standard ones.

Why? Because content and style are separated.  You style your pages with CSS, not with templates. Templates are only for putting elements on the page.
If your basic page structure is, say, header - navi/content - footer, then you do not need a different template to achieve a different look. Just style it with CSS. Tipp: Install the "web developer extension" for FireFox. It lets you change CSS in realtime(!) on the screen.

hth,
Alex
Post Reply

Return to “CMSMS Core”