Skip to content

Instantly share code, notes, and snippets.

@lfuelling
Last active Jul 13, 2019
Embed
What would you like to do?
"jUsT uPlOaD AnD rUn iT"
<VirtualHost *:80>
ServerName {{ halcyon_domain }}
Redirect permanent / https://{{ halcyon_domain }}/
Redirect permanent (.*) https://{{ halcyon_domain }}/
</VirtualHost>
<VirtualHost *:443>
ServerName {{ halcyon_domain }}
SSLEngine On
DocumentRoot "/var/www/halcyon"
DirectoryIndex index.php
Options -Indexes
HostnameLookups Off
RewriteEngine On
RewriteRule "^/home/?$" "/"
RewriteRule "^/intent/toot/?$" "/share.php"
RewriteRule "^/login/?$" "/login/login.php"
RewriteRule "^/auth/?$" "/login/auth.php"
RewriteRule "^/logout/?$" "/login/logout.php"
RewriteRule "^/terms/?$" "/login/terms.php"
RewriteRule "^/privacy/?$" "/login/privacy.php"
RewriteRule "^/imprint/?$" "/login/imprint.php"
RewriteRule "^/local/?$" "/local.php"
RewriteRule "^/federated/?$" "/federated.php"
RewriteRule "^/notifications/?$" "/notifications.php"
RewriteRule "^/whotofollow/?$" "/who_to_follow.php"
RewriteRule "^/direct/?$" "/direct.php"
RewriteRule "^/instance/?$" "/instance.php"
RewriteRule "^/lists/?$" "/lists.php"
RewriteRule "^/lists/(\d+)/?$" "/lists_view.php?id=$1"
RewriteRule "^/lists/(\d+)/add/?$" "/lists_add.php?id=$1"
RewriteRule "^/search/?$" "/search_hash_tag.php"
RewriteRule "^/search/users/?$" "/search_user.php"
RewriteRule "^/settings/?$" "/settings_general.php"
RewriteRule "^/settings/profile/?$" "/settings_profile.php"
RewriteRule "^/settings/appearance/?$" "/settings_appearance.php"
RewriteRule "^/settings/filters/?$" "/settings_filters.php"
RewriteRule "^/settings/media/?$" "/settings_media.php"
RewriteRule "^/settings/followers/?$" "/settings_accounts.php"
RewriteRule "^/settings/mutes/?$" "/settings_accounts.php"
RewriteRule "^/settings/blocks/?$" "/settings_accounts.php"
</VirtualHost>
@lfuelling

This comment has been minimized.

Copy link
Owner Author

@lfuelling lfuelling commented Jul 13, 2019

You have to replace {{ halcyon_domain }} with the actual domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment