Page 1 of 1

Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 2:20 am
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.

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 8:15 am
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

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 8:52 am
by netbuddy
Tried it again, left out the .html, no differance, still forbidden error

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 9:59 am
by faglork
Hi!

What  is in your error_log ?

Cheers,
Alex

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 10:12 am
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.

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 11:05 am
by Pierre M.

Re: Using mod_rewrite with .html extension

Posted: Wed Nov 19, 2008 11:21 am
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