Skip to content

Instantly share code, notes, and snippets.

@lfuelling
Last active July 13, 2019 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfuelling/4e38b85b91312aa09cfaa5b145728197 to your computer and use it in GitHub Desktop.
Save lfuelling/4e38b85b91312aa09cfaa5b145728197 to your computer and use it in GitHub Desktop.
"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
Copy link
Author

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