FoOlSlideX/.htaccess
2022-07-08 22:05:04 +02:00

49 lines
2.4 KiB
ApacheConf

Options +FollowSymLinks
RewriteEngine On
Options -Indexes
# Main Pages
RewriteRule ^/?$ ./render/public/home.req.php
RewriteRule ^releases/?$ ./render/public/home.req.php
RewriteRule ^login/?$ ./render/public/login.req.php
RewriteRule ^signup/?$ ./render/public/signup.req.php
RewriteRule ^logout/?$ ./render/public/home.req.php?logout
RewriteRule ^titles/?$ ./render/public/titles.req.php
RewriteRule ^bookmarks/?$ ./render/public/bookmarks.req.php
RewriteRule ^about/?$ ./render/public/about.req.php
RewriteRule ^s/(.*)/?$ ./render/public/static.req.php?static=$1
# Manga Pages
RewriteRule ^manga/(.*)/?$ ./render/public/manga.req.php?slug=$1
RewriteRule ^chapter/(.*)/?$ ./render/public/chapter.req.php?slug=$1
# Group Pages
RewriteRule ^groups/?$ ./render/public/groups.req.php
RewriteRule ^group/(.*)/?$ ./render/public/group.req.php?id=$1
# Releaser Pages
RewriteRule ^admin/settings/?$ ./render/releaser/settings.req.php
RewriteRule ^admin/new_title/?$ ./render/releaser/new_title.req.php
RewriteRule ^admin/edit_title/(.*)/?$ ./render/releaser/edit_title.req.php?slug=$1
RewriteRule ^admin/add_chapter/(.*)/?$ ./render/releaser/add_chapter.req.php?slug=$1
RewriteRule ^admin/edit_chapter/(.*)/?$ ./render/releaser/edit_chapter.req.php?slug=$1
# Mod Pages
RewriteRule ^admin/add_group/?$ ./render/mod/add_group.req.php
RewriteRule ^admin/edit_group/(.*)/?$ ./render/mod/edit_group.req.php?id=$1
RewriteRule ^admin/statics/?$ ./render/mod/statics.req.php
RewriteRule ^admin/editor/?$ ./render/mod/editor.req.php
# Admin Pages
RewriteRule ^admin/config/?$ ./render/admin/config.req.php
RewriteRule ^admin/menu_display/?$ ./render/admin/menu_display.req.php
# Redirect whatever
RewriteRule ^login.req.php?$ ./render/redirect.php?page=login
RewriteRule ^signup.req.php?$ ./render/redirect.php?page=signup
RewriteRule ^install/?$ ./install.php
ErrorDocument 404 "<head><title>Error! <= Team H33T</title></head><body style='overflow:hidden;margin:0;padding:0'><img src='https://cdn.henai.eu/assets/images/404.png' width='100%'></body>"
ErrorDocument 403 "<title>Error! <= Team H33T</title><center><h1>You escaped the Matrix!</h1></center><center><h2>Seems like Neo doesn't want to go further... but do you?</h2></center>"
ErrorDocument 500 "<title>Error! <= Team H33T</title><center><h1>You escaped the Matrix!</h1></center><center><h2>Seems like Neo doesn't want to go further... but do you?</h2></center>"