2018-02-26 17:56:23 +01:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
RewriteCond %{HTTP_HOST} ^www\.(.+?)$
|
|
|
|
RewriteRule ^(.*)$ https://$1 [R=301,L]
|
|
|
|
|
|
|
|
# Main
|
|
|
|
RewriteBase /
|
|
|
|
RewriteRule ^home/?$ / [R=301]
|
|
|
|
|
|
|
|
RewriteBase /login
|
|
|
|
RewriteRule ^login/?$ login/login\.php [NC,L,QSA]
|
|
|
|
RewriteRule ^auth/?$ login/auth\.php [NC,L,QSA]
|
|
|
|
RewriteRule ^logout/?$ login/logout\.php [NC,L,QSA]
|
|
|
|
RewriteRule ^terms/?$ login/terms\.php [NC,L,QSA]
|
2018-07-25 17:31:54 +02:00
|
|
|
RewriteRule ^privacy/?$ login/privacy\.php [NC,L,QSA]
|
|
|
|
RewriteRule ^imprint/?$ login/imprint\.php [NC,L,QSA]
|
2018-02-26 17:56:23 +01:00
|
|
|
|
|
|
|
# LTL
|
|
|
|
RewriteBase /local
|
|
|
|
RewriteRule ^local/?$ local\.php [NC,L]
|
|
|
|
|
|
|
|
# FTL
|
|
|
|
RewriteBase /federated
|
|
|
|
RewriteRule ^federated/?$ federated\.php [NC,L]
|
|
|
|
|
|
|
|
# Notice
|
|
|
|
RewriteBase /notifications
|
|
|
|
RewriteRule ^notifications/?$ notifications\.php [NC,L]
|
|
|
|
|
2018-06-23 16:58:06 +02:00
|
|
|
# Who to follow
|
|
|
|
RewriteBase /whotofollow
|
|
|
|
RewriteRule ^whotofollow/?$ who_to_follow\.php [NC,L]
|
|
|
|
|
2018-09-23 16:14:28 +02:00
|
|
|
# Direct
|
|
|
|
RewriteBase /direct
|
|
|
|
RewriteRule ^direct/?$ direct\.php [NC,L]
|
|
|
|
|
2018-12-02 15:01:21 +01:00
|
|
|
# Instance
|
|
|
|
RewriteBase /instance
|
|
|
|
RewriteRule ^instance/?$ instance\.php [NC,L]
|
|
|
|
|
2018-09-23 16:14:28 +02:00
|
|
|
# Lists
|
|
|
|
RewriteBase /lists
|
|
|
|
RewriteRule ^lists/?$ lists\.php [NC,L]
|
|
|
|
RewriteRule ^lists/(\d+)/?$ lists_view\.php?id=$1 [NC,L,QSA]
|
|
|
|
RewriteRule ^lists/(\d+)/add/?$ lists_add\.php?id=$1 [NC,L,QSA]
|
|
|
|
|
2018-02-26 17:56:23 +01:00
|
|
|
# Search
|
|
|
|
RewriteBase /search
|
|
|
|
RewriteRule ^search/?$ search_hash_tag\.php [NC,L,QSA]
|
|
|
|
RewriteRule ^search/users/?$ search_user\.php [NC,L,QSA]
|
|
|
|
|
2018-06-09 17:29:25 +02:00
|
|
|
# Settings
|
|
|
|
RewriteBase /settings
|
|
|
|
RewriteRule ^settings/?$ settings_general\.php [NC,L]
|
|
|
|
RewriteRule ^settings/profile/?$ settings_profile\.php [NC,L]
|
|
|
|
RewriteRule ^settings/appearance/?$ settings_appearance\.php [NC,L]
|
2018-11-25 19:14:16 +01:00
|
|
|
RewriteRule ^settings/filters/?$ settings_filters\.php [NC,L]
|
2019-01-13 19:02:16 +01:00
|
|
|
RewriteRule ^settings/media/?$ settings_media\.php [NC,L]
|
2019-05-19 17:59:49 +02:00
|
|
|
RewriteRule ^settings/followers/?$ settings_accounts\.php [NC,L]
|
|
|
|
RewriteRule ^settings/mutes/?$ settings_accounts\.php [NC,L]
|
|
|
|
RewriteRule ^settings/blocks/?$ settings_accounts\.php [NC,L]
|
2018-06-09 17:29:25 +02:00
|
|
|
|
2018-02-26 17:56:23 +01:00
|
|
|
# User
|
|
|
|
RewriteBase /
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/?$ user\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/status/(.+?)?$ user\.php?user=@$1@$2\.$3&status=$4 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/media/?$ user_only_media\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/with_replies/?$ user_include_replies\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/followers/?$ user_followers\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/following/?$ user_following\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
RewriteRule ^@(.+)@(.+)\.([a-z]+)/favourites/?$ user_favorite\.php?user=@$1@$2\.$3 [NC,L,QSA]
|
|
|
|
|
|
|
|
# Image
|
|
|
|
RewriteBase /
|
|
|
|
RewriteRule ^avatars/original/missing\.png$ assets/images/missing\.png [NC,L]
|
|
|
|
RewriteRule ^headers/original/missing\.png$ assets/images/missing_header\.png [NC,L]
|
|
|
|
|
|
|
|
# 404
|
|
|
|
RewriteRule ^404/?$ 404\.php [NC,L,QSA]
|
|
|
|
ErrorDocument 404 /404
|
|
|
|
|
|
|
|
</IfModule>
|