I am trying really hard to grasp htaccess, but I am having a hard time figuring this one out.
Let’s say I have http://www.example.com.
I am planning on moving the entire site into a folder like so http://www.example.com/folder/
I created a folder and moved everything in it. How do I make sure that if someone finds me through google, they will be redirected to the correct page.
For instance, http://www.example.com/view.php?id=5 becomes http://www.example.com/folder/view.php?id=5
Thanks for any help you might give me.
If you want to redirect every request from example.com to example.com/folder including css, js, html, php etc files then use the following