Htaccess File

0918nobita/Tea-tango/master/.htaccess

REQUEST_FILENAME
Options FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^signup$ /src/signup.php
RewriteRule ^login$ /src/login.php
RewriteRule ^logout$ /src/controllers/logout.php
#RewriteRule ^profile/(w+)$ /src/index.php?page=profile&name=$1
RewriteRule ^timeline$ /src/index.php?page=timeline
RewriteRule ^library$ /src/index.php?page=library
RewriteRule ^help$ /src/index.php?page=help
RewriteRule ^about$ /src/index.php?page=about
RewriteRule ^others$ /src/index.php?page=others
RewriteRule ^profile_edit$ /src/profile-edit.php
RewriteRule ^change_language$ /src/change-language.php
RewriteRule ^error$ /src/index.php?page=error

#上記以外でフォルダ名が指定されている場合のアクセス先(profile)
RewriteRule ^(w+)$ /src/index.php?page=profile&name=$1

#デフォルトのアクセス先(現在は概要ページ(about)に飛ばすようにしてます)
RewriteRule ^$ /src/index.php?page=about

ErrorDocument 404 /error
Exit mobile version