This may be slightly off-topic but please forgive me 🙂 Just need a little help with .htacess.
What I want to do
- the user clicks login
- enter a username and password
- it then redirects them to THEIR space. E.g:
if a user called "george" logged in, they would be redirected to ./george/ or if sally logged in it would be redirected to ./sally/
My code - .htaccess
AuthType Basic
AuthName "xxxxx"
AuthUserFile /home/xxxx/xxxx/members_htusers
Require valid-user
RewriteCond %{REMOTE_USER} bobby [NC]
#RewriteRule $ bobby [R]
RewriteRule (.*)$ bobby [R]
The problem
The user can login correctly if the information is correct - no problem there. But it just isn't redirecting the user at all. Any ideas why. The code shown in blue I have tried but that didn't work either.
Any ideas please? Really stuck on this now. Thank you 🙂