require_once realpath(PUBLIC_PATH . '/../config/config.php');
require_once realpath(PUBLIC_PATH . '/config/config.php');
RewriteEngine on RewriteCond $1 !^(index\.php|public|activecollab|cache|compile|config|import|logs|tasks|thumbnails|upload|thumb\.php|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteEngine on RewriteCond $1 !^(index\.php|public|activecollab|cache|compile|config|import|logs|tasks|thumbnails|upload|thumb\.php|robots\.txt) RewriteRule ^(.*)$ /index.php?/$1 [L]
Ilija Studen:There is a better way to do this. We used on many platforms already and it performs well. I'll post more details later today or tomorrow. mod_rewrite needs to be enabled for this to work...
http://collab.example.com/index.php/projects/1
http://collab.example.com/projects/1
define('ROOT_URL', 'http://collab.example.com');
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
~/public/index.php/
to:
~/
When you goto the root directory it says "Not Found" in big h4 tags. Seems rather silly to make the URL /public/index.php...
I don't like it :(