Below is my .htaccess file from apache. I'm getting a 404 not found error on my subdirectories, and I am certain it has to do with my rewrite.
Options -Indexes
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* file.php [L,QSA]
</IfModule>
Here is my lighttpd.conf rewrite
$HTTP["host"] =~ "www.example.com" {
url.rewrite = ( "^(.*)$" => "$1.php" )
}
server.follow-symlink = "enable"
I know the "$1.php" isn't the right answer. It sort-of works, but I wouldn't consider it functional. It's sole purpose here is to help put together what I'm trying to do.