Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permanent redirects for all info pages #707

Merged
merged 2 commits into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions resources/views/front/components/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<li>
<h5>Information</h5>
<ul>
<li><a href="https://portal.projectcitybuild.com/books/rules/page/community-rules">Rules & Guidelines</a></li>
<li><a href="https://portal.projectcitybuild.com/books/player-ranks/page/list-of-ranks">Ranks</a></li>
<li><a href="https://portal.projectcitybuild.com/books/list-of-staff/page/active">Staff</a></li>
<li><a href="https://portal.projectcitybuild.com/books/server-voting/page/server-voting">Vote For Us</a></li>
<li><a href="https://portal.projectcitybuild.com/books/map-archive/page/map-archive">Map Archive</a></li>
<li><a href="{{ route('rules') }}">Rules & Guidelines</a></li>
<li><a href="{{ route('ranks') }}">Ranks</a></li>
<li><a href="{{ route('staff') }}">Staff</a></li>
<li><a href="{{ route('vote') }}">Vote For Us</a></li>
<li><a href="{{ route('map-archive') }}">Map Archive</a></li>
</ul>
</li>
<li>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/front/components/sitemap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<div class="footer-links__category">
<h2>Server</h2>
<ul>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/pcb-community-rules/22928">Rules & Guidelines</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/pcb-ranks/32812">Ranks</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://wiki.projectcitybuild.com/wiki/List_of_Staff_Members">Staff</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('rules') }}">Rules & Guidelines</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('ranks') }}">Ranks</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('staff') }}">Staff</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('maps') }}" target="_blank" rel="noopener noreferrer">Real-Time Maps</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('3d-maps') }}" target="_blank" rel="noopener noreferrer">3D Maps</a></li>
</ul>
Expand All @@ -18,7 +18,7 @@
<h2>Community</h2>
<ul>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('wiki') }}">Community Wiki</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/vote-for-our-server/18568">Vote For Our Server</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('vote') }}">Vote For Our Server</a></li>
</ul>
</div>

Expand Down
38 changes: 32 additions & 6 deletions routes/web_redirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,35 @@

use Illuminate\Support\Facades\Route;

Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928')->name('terms');
Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy')->name('privacy');
Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com')->name('wiki');
Route::permanentRedirect('maps', 'https://maps.pcbmc.co')->name('maps');
Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co')->name('3d-maps');
Route::permanentRedirect('report', 'https://forums.projectcitybuild.com/w/player-report')->name('report');
Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928')
->name('terms');

Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy')
->name('privacy');

Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com')
->name('wiki');

Route::permanentRedirect('maps', 'https://maps.pcbmc.co')
->name('maps');

Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co')
->name('3d-maps');

Route::permanentRedirect('report', 'https://forums.projectcitybuild.com/w/player-report')
->name('report');

Route::permanentRedirect('rules', 'https://portal.projectcitybuild.com/books/rules/page/community-rules')
->name('rules');

Route::permanentRedirect('ranks', 'https://portal.projectcitybuild.com/books/player-ranks/page/list-of-ranks')
->name('ranks');

Route::permanentRedirect('staff', 'https://portal.projectcitybuild.com/books/list-of-staff/page/active')
->name('staff');

Route::permanentRedirect('vote', 'https://portal.projectcitybuild.com/books/server-voting/page/server-voting')
->name('vote');

Route::permanentRedirect('map-archive', 'https://portal.projectcitybuild.com/books/map-archive/page/map-archive')
->name('map-archive');