normal condition
redirect to "http://www.domain.com
" when just type "domain.com
"
we can use like below on .htaccess file
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$
RewriteRule ^$ http://www.domain.com/index.php [L,R=301]
================================================================= if anyone know when use append folder to be a website ? how to set rule on .htaccess?
if i want to just type "domain.com/uat_01
" hope redirect to
"http://www.domain.com/uat_01
" or "http://www.domain.com/uat_01/index.php"