RewriteEngine On

# Handle 404 errors
ErrorDocument 404 /AngMansion_kos/user/index.php

# Redirect to user/index.php if accessing root
DirectoryIndex index.php

# Allow access to assets
<Files "*.css">
    Allow from all
</Files>
<Files "*.js">
    Allow from all
</Files>
<Files "*.jpg">
    Allow from all
</Files>
<Files "*.png">
    Allow from all
</Files>
<Files "*.gif">
    Allow from all
</Files> 