How to, using mode_rewrite in .htaccess redirect this: www.domain.com/app?et= to the default index file in the main root folder: www.domain.com
something like below should do your job: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^app?et=$ / [L,R=301]
This does not work for me: RewriteRule ^app?et=$ / [L,R=301] I tried with: RewriteRule ^app$ / [L,R=301] and i works to some extend it gives the index page- GOOD, but with query string at the end: http://www.domain.com/?et= when I added ? after / RewriteRule ^app$ /? [L,R=301] works like a charm. Just for the reference I also tried this but it did not work: RewriteCond %{REQUEST_URI} ^/app$ RewriteCond %{QUERY_STRING} ^\?et= RewriteRule (.*) http://www.domain.com/$ [R=301,L]