Etomite, mod_rewrite, and .htaccess

apps

#1

I’m using the Etomite CMS and trying to get the friendly URL’s going by using the rewrite rules in .htaccess. My first questions is this: is the Apache mod_rewrite installed on Dreamhost accounts by default, and does it run/work with PHP running as CGI?

Secondly, if so, what do I need to do to get it to rewrite correctly? Currently my .htaccess file has the following:

Options FollowSymLinks IncludesNoExec ExecCGI
AllowOverride all

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

I’m not sure if this is what I need or not. I’m hoping someone out there is familiar with Etomite or .htaccess and mod_rewrite enough to help out. I’m about to pull my hair out…

Sean


#2

Sean,
Did you ever resolve this? I am facing the same dilemna.


#3

Hey, sorry that it took many months to reply…I hadn’t been back to the forums in forever. I did solve the problem, just a few simple lines in my .htaccess file did the trick. Here’s all you need to get the Etomite CMS working on Dreamhost:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]