Skip to content

Commit

Permalink
Updated after testing examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Superraptor committed Sep 22, 2024
1 parent e0eb31b commit 93cd6a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 10 additions & 1 deletion GayLesbianBisexualTVCharacters/.htaccess
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Example
#
# https://w3id.org/GayLesbianBisexualTVCharacters/1980s/insi redirects to https://home.cc.umanitoba.ca/~wyatt/tv-char1980s.html#insi
# https://w3id.org/GayLesbianBisexualTVCharacters/road redirects to https://home.cc.umanitoba.ca/~wyatt/tv-characters.html#road
# https://w3id.org/GayLesbianBisexualTVCharacters/days redirects to https://home.cc.umanitoba.ca/~wyatt/tv-characters.html#days
#
# ## Contact
# This space is administered by:
Expand All @@ -9,8 +11,15 @@
# [email protected]
# GitHub username: Superraptor

# Examples tested using:
# https://htaccess.madewithlove.com/
# (22 September 2024)

RewriteEngine On
RewriteBase /

# Redirect URLs of the form /GayLesbianBisexualTVCharacters/$1
RewriteRule ^GayLesbianBisexualTVCharacters/([a-z]{1,10})$ https://home.cc.umanitoba.ca/~wyatt/tv-characters.html#$1 [R=301,NE,L]

# Redirect URLs of the form /GayLesbianBisexualTVCharacters/$1/$2
RewriteRule ^GayLesbianBisexualTVCharacters/([1-2][9,0][6,7,8,9,0]0s)/([a-z]{1,10}[0-9]{0,4})$ https://home.cc.umanitoba.ca/~wyatt/tv-char$1.html#$2 [R=301,L]
RewriteRule ^GayLesbianBisexualTVCharacters/([1-2][9,0][6,7,8,9,0]0s)/([a-z]{1,10}[0-9]{0,4})$ https://home.cc.umanitoba.ca/~wyatt/tv-char$1.html#$2 [R=301,NE,L]
10 changes: 7 additions & 3 deletions Greens/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@
# [email protected]
# GitHub username: Superraptor

# Examples tested using:
# https://htaccess.madewithlove.com/
# (22 September 2024)

RewriteEngine On
RewriteBase /

# Redirect /Greens/$1 to https://greensdictofslang.com/entry/$1
RewriteRule ^Greens/([0-9a-zA-Z]{7})$ https://greensdictofslang.com/entry/$1 [R=301,L]
RewriteRule ^Greens/([0-9a-z]{7})$ https://greensdictofslang.com/entry/$1 [R=301,L]

# Redirect /Greens/$1/$2 to https://greensdictofslang.com/entry/$1#$2
RewriteRule ^Greens/([0-9a-zA-Z]{7})/([0-9a-zA-Z]{7})$ https://greensdictofslang.com/entry/$1#$2 [R=301,L]
RewriteRule ^Greens/([0-9a-z]{7})/([0-9a-z]{7})$ https://greensdictofslang.com/entry/$1#$2 [R=301,NE,L]

# Redirect /Greens/$1/$2 to https://greensdictofslang.com/entry/$1#$2
RewriteRule ^Greens/([0-9a-zA-Z]{7})/(sn[0,9]{1,3})$ https://greensdictofslang.com/entry/$1#$2 [R=301,L]
RewriteRule ^Greens/([0-9a-z]{7})/(sn[0-9]{1,3})$ https://greensdictofslang.com/entry/$1#$2 [R=301,NE,L]

# Redirect /Greens/sources/$1 to https://greensdictofslang.com/sources/$1
RewriteRule ^Greens/sources/([0-9]{1,5})$ https://greensdictofslang.com/sources/$1 [R=301,L]

0 comments on commit 93cd6a3

Please sign in to comment.