Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu authored Jan 19, 2024
1 parent 4255a06 commit c05d2d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public_html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
RewriteRule ^/?bilibili/?$ https://space.bilibili.com/1280248035?spm_id_from=333.788.b_765f7570696e666f.1 [R=301,L]

# Redirect http to https
RewriteCond %{HTTP_HOST} ^nf-co\.re [NC]
RewriteCond %{HTTP_HOST} ^oldsite.nf-co\.re [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://nf-co.re/$1 [R,L]
RewriteRule ^(.*)$ https://oldsite.nf-co.re/$1 [R,L]

# Remove www. from URL
RewriteCond %{HTTP_HOST} ^www.nf-co.re$ [NC]
RewriteRule ^(.*)$ https://nf-co.re/$1 [L]
RewriteCond %{HTTP_HOST} ^www.oldsite.nf-co.re$ [NC]
RewriteRule ^(.*)$ https://oldsite.nf-co.re/$1 [L]

# Remove trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
Expand Down

0 comments on commit c05d2d9

Please sign in to comment.