I have some folders where are structures like this
test >main >pages>general(inside pages I have my index.php, contact.php etc)
at the moment my url looks something like this
www.test.com/test/main/pages/general.index.php
how can i rewrite this so i can cut all the folders out and just show
www.test.com/index.php
I have done
RewriteEngine on
AuthUserFile "/home/amytesting/.htpasswds/public_html/passwd"
AuthName "root"
AuthType Basic
require valid-user
Options -Indexes
RewriteCond %{HTTP_HOST} ^test\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.com
RewriteRule ^/?$ "http\:\/\/test\.com/\ " [R=301,L]