Installing elgg 1.9 subdirectory

I installed elgg in a subdirectory, but it is not working. When I try to log in or go to any page I get a 404 or get redirected to homepage.

Any ideas? I know it is on beta but I want to try this version right now