I have a VirtualHost setup like this :
Alias /somedir /some/other/dir
http://example.com/somedir works fine
However, I need to setup mod_rewrite
for /somedir (a CodeIgniter app for which I want clean URLs). Here's the bit from the CodeIgniter wiki :
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Usually, when mod_rewrite
is used in subdirs changing RewriteBase
to match the name of the dir is enough to make it work :
RewriteBase /somedir
...but it doesn't seem to work with mod_alias
(getting 404s). Is there a workaround for this problem ?