Skip to content

prplwtf/Redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirect

blueprint · pterodactyl

Create URL redirects within seconds, right within your admin panel.


Important

This tool may not be maintained and might break with new releases of both Pterodactyl and Blueprint. Please use at your own risk, little to no support is provided with this extension.



Installation

To install this extension, download the latest release of Redirect and drag the redirect.blueprint file over to your Pterodactyl installation folder. Then, run blueprint -install redirect to finish the installation process.

If you're using NGINX as your webserver, assuming you followed the Pterodactyl installation instructions, you will also need to modify your config file. Apache and Caddy should work without additional configuration.

NGINX Configuration

  • Open your NGINX server config file, typically located in /etc/nginx/sites-available/
  • Within your server block that contains the index line (the second server block, if you followed the Pterodactyl guide), change index index.php to index index.php index.html
  • Save the file, then test your config with nginx -t
  • If the test completes without issue, restart NGINX with sudo systemctl restart nginx

Usage

Within the extension's page, acessible via the puzzle piece on the admin page, you will see a few different panels:

  • Redirects: A list of all of your active redirects
  • Add Redirect: Used to add a new redirect
    • Name: The link extension that you would like to use as your redirect. E.g. test as the name would create a redirect on the URL yourserver.com/test
    • Destination: The URL you would like the link to redirect to
  • Remove Redirect: used to remove a redirect
    • Name: The name must match EXACTLY that of the link you'd like to remove.

After adding a redirect, you can visit <your website URL>/<redirect name> to be redirected.

For example, with the website serverhost.net and a redirect named myvideo, you would visit serverhost.net/myvideo


Removal

To remove Redirect from your Pterodactyl panel, run blueprint -remove redirect. This might not remove all of your redirects, so remove them before removing Redirect.


Screenshots

image