I have a folder ‘Main’ [wherein the index.php resides] with a sub-folder called ‘Users’. The ‘Users’ folder has two sub-folders ‘A’ and ‘B’. When user A logs in with correct credentials, it should show the url as http://domain.com/A rather than http://domain.com/users/A.
How can I achieve this in either .htaccess or javascript or php?
From what I understand you can put:
RewriteRule ^/A$ /users/Ain .htaccessand redirect the user via PHP (once he logs in) like this:
header("Location: {yourSite}/A");Hope I understood your problem and this helps 🙂