I have a website with an include script that will have a various number of variables.
Here are some of the types of URLs and variables:
Main page: index.php
Login page: login.php (redirects to index.php after login).
Logout page: logout.php (redirects to login after logout).
Profile page: index.php?id=profile
Users password page: index.php?id=profile&sub=password
And some pages even has more variables in the URL. I want to use RewriteRules to be able to get nice URLs like this:
url.com/my/site/ (base)
url.com/my/site/profile/ (profile page)
url.com/my/site/profile/password/ (password page)
url.com/my/site/profile/password/variable1/variable2/variable3/ (use variables in the URL)
How can I do this in the .htaccess-file? The site is not the root on the domain, but a couple of folders down.