Hello and thanks for reading my question.
I have the following htaccess file in each directory above the root httdocs that needs rewrite.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([/]+) index.php?folder=$1&%{QUERY_STRING} [L]
so I have the same exact .htaccess file in
/httdocs/blog/.htaccess
/httdocs/events/.htaccess
What I would like to do is have one .htaccess in the root, maybe something like
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([/]+) blog/index.php?folder=$1&%{QUERY_STRING} [L]
RewriteRule ([/]+) events/index.php?folder=$1&%{QUERY_STRING} [L]
Can this be done? Which way is actually better?