一ツ星 生徒・保護者 専用サイトの.htaccess

AuthUserFile /home/users/2/her.jp-shonan-edu/web/student_only/.htpasswd
AuthGroupFile /dev/null
AuthName "保護者サイトアクセス制限"
AuthType Basic
require valid-user

RewriteEngine on
RewriteBase /

RewriteRule ^category/photo(.)$ https://students.hitotsuboshi.jp/photo-gallery [R=301,L] RewriteRule ^category/photo/2025(.)$ https://students.hitotsuboshi.jp/photo-2025 [R=301,L] RewriteRule ^category/photo/2024(.)$ https://students.hitotsuboshi.jp/photo-2024 [R=301,L] RewriteRule ^category/photo/2023(.)$ https://students.hitotsuboshi.jp/photo-2023 [R=301,L] RewriteRule ^category/photo/2022(.)$ https://students.hitotsuboshi.jp/photo-2022 [R=301,L]

# BEGIN WordPress
# “BEGIN WordPress” から “END WordPress” までのディレクティブ (行) は
# 動的に生成され、WordPress フィルターによってのみ修正が可能です。
# これらのマーカー間にあるディレクティブへのいかなる変更も上書きされてしまいます。

RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /
RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress