2022-03-07 14:56:55 +00:00
|
|
|
#
|
|
|
|
# Rewrite
|
|
|
|
#
|
2022-03-07 14:20:02 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
2022-03-07 14:56:55 +00:00
|
|
|
RewriteEngine On
|
2022-09-24 09:06:06 +00:00
|
|
|
RewriteBase /
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
2022-09-24 09:06:06 +00:00
|
|
|
|
2022-03-07 14:56:55 +00:00
|
|
|
# Page
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^([a-z\-]+)$ /index.php?page=$1 [QSA,L]
|
2022-05-28 17:11:11 +00:00
|
|
|
|
|
|
|
# Wishlists (My lists)
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^wishlists/([0-9]+)$ /index.php?page=wishlists&id=$1 [QSA,L]
|
|
|
|
RewriteRule ^wishlists/([0-9]+)/add$ /index.php?page=wishlists&id=$1&wish_add=true [QSA,L]
|
2022-05-28 17:11:11 +00:00
|
|
|
|
|
|
|
# Wishlist
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^wishlist/([0-9a-f]{40})$ /index.php?page=wishlist&hash=$1 [QSA,L]
|
2022-06-08 12:42:17 +00:00
|
|
|
|
|
|
|
# Blog Post
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^blog/([a-z\-0-9]+)$ /index.php?page=post&slug=$1 [QSA,L]
|
2022-11-24 15:09:33 +00:00
|
|
|
|
|
|
|
# API
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^api/([a-zA-Z\-0-9=]+)$ /index.php?page=api&module=$1 [QSA,L]
|
2022-11-24 15:09:33 +00:00
|
|
|
|
2023-09-27 08:04:22 +00:00
|
|
|
RewriteRule ^api/statistics/([a-zA-Z0-9=]+)$ /index.php?page=api&module=statistics&table=$1 [QSA,L]
|
|
|
|
RewriteRule ^api/url/([a-zA-Z0-9=]+)$ /index.php?page=api&module=url&url=$1 [QSA,L]
|
|
|
|
RewriteRule ^api/wishlists/([0-9]+)$ /index.php?page=api&module=wishlists&wishlist_id=$1 [QSA,L]
|
|
|
|
RewriteRule ^api/wishlists/([0-9a-f]{40})$ /index.php?page=api&module=wishlists&wishlist_hash=$1 [QSA,L]
|
2022-03-07 14:20:02 +00:00
|
|
|
</IfModule>
|