現在、各ユーザーが独自のページを持つサイトをセットアップしています。
Example: www.example.com/user
しかし今、ユーザーごとに異なるセクションを作成する方法を考えています。
Example: www.example.com/user/photos
これどうやってするの?
これがユーザーのページの htaccess です。
RewriteEngine On
RewriteOptions MaxRedirects=1
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteRule ^(.*)$ userpage.php?user=$1 [QSA,L]