Is it possible to make a folder transparent in the URL like in the following example:
example.com/test/
changed to
example.com/
using mod_rewrite?
I like having folders for organization, but I want a nice clean url.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can achieve that with mod_rewrite putting something like this in the
.htaccessfile of your root folder:This will redirect to
/test/all the pages/files requested from/.If you only want to redirect some files use more specific rule(s):
Or if you want to use different folders: