Login or Register

RSS IconRecent posts in this topic

avatar
llbbl on Oct 15. 2007. 11:24 pm
Is there anyway to change the URL from

~/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 :(
avatar
llbbl on Oct 15. 2007. 11:33 pm
~/public/index.php/

doesn't work even . same stupid error.

The login page is here:
~/public/index.php/login

It should default to the login page if a user isn't logged in >< ... and this should be working at root url not some crazy hidden URL that no one knows about.


Ilija this is not ready for the public ...
avatar
llbbl on Oct 15. 2007. 11:48 pm
Ok i figured some stuff out..

copy /public/index.php to your root directory.

edit the file . change this line from:

  require_once realpath(PUBLIC_PATH . '/../config/config.php');


to

  require_once realpath(PUBLIC_PATH . '/config/config.php');
avatar
llbbl on Oct 15. 2007. 11:53 pm
Now to remove the stupid index.php from all the URLs... Something that also should be done by default...

can do that with htaccess file. this should work for you.

yw Ilija for contributing ... do I win a prize?

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]


You may need a question mark in the htaccess file. It worked for me without it. Here is what it looks like with the question mark.

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]


oh and don't ask me what this does ... its extremely hard to explain and I don't understand it 100% .. but it works :)
avatar
llbbl on Oct 15. 2007. 11:55 pm
Now I just need figure out a way to display the login page instead of "No input file specified." on the root directory.

But it will work if you now goto activecollab.example.com/login.

avatar
Ilija Studen on Oct 16. 2007. 6:53 am
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...
activeCollab team member | LinkedIn
avatar
llbbl on Oct 16. 2007. 7:01 am
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...


Yes that is what I am doing in my post above, using mod_rewrite on apache. I have already solved that problem. If you could tell me where in the code to make it load the login page by default that would be excellent. I am searching for the solution now ;)
avatar
llbbl on Oct 16. 2007. 7:53 am
Well crap. even if you use the above mod_rewrite that I have provided it still does not work ideally because all the links that aC generates include the stupid index.php in the URL.

That is the best I can get it. No /public/ folder in the URL at least.
http://collab.example.com/index.php/projects/1


I still wish that the URL was
http://collab.example.com/projects/1


I had to copy the entire public folder to the root directory . and also change the .htaccess to include the "assets" folder .. also change the following line in ~/config/config.php to what you see below:

  define('ROOT_URL', 'http://collab.example.com'); 
avatar
llbbl on Oct 16. 2007. 8:33 am
/sigh ...

it is not working perfectly my mod_rewrite code.

w/o the ? it removes index.php completely when visitng ~/

w/ the ? it still gives different error . and makes ~/dashboard or ~/login not work...
avatar
llbbl on Oct 16. 2007. 8:49 am
Ok here is best mod_rewrite code so far..
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


But I am still stuck on ~/ displaying "Not Found" in big h1 tags.

RSS IconRecent posts in this topic