I'm trying to redirect my site from http://www.masterflooringtampa.com to go automatically to http://www.masterflooringtampa.com/en/ . I have been able to change my htaccess to do everything I needed except that. Please keep in mind that I use RewriteRule ^en/?$ index.php?lang_id=1 [NC,QSA,L] to direct to the correct php handler. Any htaccess expert can point in right direction? Also, if you have a shortcut or way to set up a formula to clean up the script (i'm just doing brute force, every url/link on its own approach that works but is not very elegant) I would be greatly appreciated.
<IfModule mod_expires.c>
# defaults to the english site
RewriteRule ^en/?$ index.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/?$ index.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/products/?$ products.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/products/?$ products.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/services/?$ services.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/services/?$ services.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/about/?$ about.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/about/?$ about.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/contact/?$ contact.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/contact/?$ contact.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/floors/hardwood/?$ floors/hardwood.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/floors/hardwood/?$ floors/hardwood.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/floors/carpet/?$ floors/carpet.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/floors/carpet/?$ floors/carpet.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/floors/laminate/?$ floors/laminate.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/floors/laminate/?$ floors/laminate.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/floors/tile/?$ floors/tile.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/floors/tile/?$ floors/tile.php?lang_id=2 [NC,QSA,L]
RewriteRule ^en/floors/vinyl/?$ floors/vinyl.php?lang_id=1 [NC,QSA,L]
RewriteRule ^es/floors/vinyl/?$ floors/vinyl.php?lang_id=2 [NC,QSA,L]
</IfModule>