Old Site Redirections

Elysium013

Member
Jul 13, 2020
207 Posts
117 Thanked
Hey all.
My bookmark was set to the old trancefix.nl/forum.php which now returns a 404 Not Found, and I'm going to assume it's the same for many other members, and search engines. Wondering if it wouldn't be a good idea to make a dummy forum.php file with a redirect to the new page, will help with existing bookmarks and perhaps even with SEO/search engine redirects ;)

Cheers!
 

Snowknight26

Member
Jul 13, 2020
114 Posts
63 Thanked
On top of that, I would suggest changing the default Apache 404 handler to go to a simple HTML page with the Trancefix logo and a link to the root path.

Example:

Code:
<!DOCTYPE html>
<html>
<head>
    <title>Trancefix - Page Not Found</title>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
    <style>
        body {
            margin: 0;
            padding: 0;
            background: black url('https://iili.io/JmyRB2.png');
            color: white;
            font-family: 'Open Sans', sans-serif;
        }
        .container {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            height: 100vh;
        }
        .container > div {
            width: 500px;
            text-align: center;
        }
        .container .logo img {
            height: 224px;
            width: 100%
        }
        .container .oops {
            padding: 40px 0;
        }
        .container .action .button {
            color: #00a0d8;
            background: white;
            border-radius: 2px;
            text-decoration: none;
            padding: 5px 20px;
            font-weight: 600;
            display: inline-block;
        }
        .container .action .button:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="logo"><img src="https://www.trancefix.nl/styles/trancefix/trancefix/tf-logo-dark.svg"></div>
    <div class="oops">Sorry, we couldn't find the page you're looking for.</div>
    <div class="action"><a class="button" href="/">Home</a></div>
</div>
</body>
</html>
 
  • Thanks
Reactions: Elysium013

Elysium013

Member
Jul 13, 2020
207 Posts
117 Thanked
I'm sure there's a way to make a rewrite rule to make it show a 404 within the forum too tbh.
 

Archon

Gagi
TranceFix Crew
Jun 27, 2020
3,924 Posts
2,821 Thanked
Hey all, will see if I can do that/those. Unfortunately, I do not have access to all the files, only the XenForo admin panel. Still wrapping my head around it. :D Thank you for your suggestions and help.

As far as archive goes, for now, Wayback Machine is your best bet.
 
  • Thanks
Reactions: Elysium013