Page 1 of 1

windows server and pretty urls error

Posted: Thu Feb 15, 2007 11:04 am
by davemof
My client has a windows server, and I can't seem to get pretty urls to work, to safe my life.

I hate windows servers, but unfortunately  my hands are tied in this case, if anyone can give me any help it would be much appreciated. I currently am getting a 404 error when trying to access anything other than the front page.

My config settings are:

$config['assume_mod_rewrite'] = true;

$config['page_extension'] = '/';

$config['internal_pretty_urls'] = true;

$config['use_hierarchy'] = true;

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

and my .htaccess file is

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Having thought about it though, I don't think that my server will be running apache (and obviously it wont then support .htaccess files). I'm an extreme novice on windows servers, but can they run php without apache.

Any help will be gratefully recieved.

Regards

David

Re: windows server and pretty urls error

Posted: Thu Feb 15, 2007 10:36 pm
by Pierre M.
I don't bet my life on Windows...

To save yours, try some tests :
http://forum.cmsmadesimple.org/index.ph ... l#msg43943
But without Apache, you are lost.

Pierre M.