fix: potential bug with rewriterule matching
This commit is contained in:
parent
e772eb0f4f
commit
0a63b84f01
1 changed files with 10 additions and 10 deletions
20
.htaccess
20
.htaccess
|
@ -7,25 +7,25 @@
|
|||
RewriteBase /
|
||||
|
||||
# Page
|
||||
RewriteRule ^([a-z\-]+)$ /index.php?page=$1 [QSA,L]
|
||||
RewriteRule ^([a-z\-]+)$ index.php?page=$1 [QSA,L]
|
||||
|
||||
# Wishlists (My lists)
|
||||
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]
|
||||
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]
|
||||
|
||||
# Wishlist
|
||||
RewriteRule ^wishlist/([0-9a-f]{40})$ /index.php?page=wishlist&hash=$1 [QSA,L]
|
||||
RewriteRule ^wishlist/([0-9a-f]{40})$ index.php?page=wishlist&hash=$1 [QSA,L]
|
||||
|
||||
# Blog Post
|
||||
RewriteRule ^blog/([a-z\-0-9]+)$ /index.php?page=post&slug=$1 [QSA,L]
|
||||
RewriteRule ^blog/([a-z\-0-9]+)$ index.php?page=post&slug=$1 [QSA,L]
|
||||
|
||||
# API
|
||||
RewriteRule ^api/([a-zA-Z\-0-9=]+)$ /index.php?page=api&module=$1 [QSA,L]
|
||||
RewriteRule ^api/([a-zA-Z\-0-9=]+)$ index.php?page=api&module=$1 [QSA,L]
|
||||
|
||||
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]
|
||||
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]
|
||||
</IfModule>
|
||||
|
||||
##-- When caching of gzipped JS and CSS files is used, enable this setting
|
||||
|
|
Loading…
Reference in a new issue