Thank you for the reply g1smd! and I am very sorry if I am one of them that ask something like this. :(
Here is some of the codes I used. Since I don't know a lot about this subject, what I did was to search every code and apply them to the site. If that code won't work, I try another.
1.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} test
RewriteRule ^(.*)$ [
domain.com...] [R,L]
2.
RewriteCond %{HTTPS} off
RewriteRule test [
%{HTTP_HOST}%{REQUEST_URI}...] [L]
RewriteCond %{HTTPS} on
RewriteRule !test [
%{HTTP_HOST}%{REQUEST_URI}...] [L]
3. This I found here in webmasterworld.
# Redirect HTTPS requests for non-SSL pages back to HTTP. (Note that shared objects
# such as images on both HTTP and HTTPS pages are excluded from this rule)
RewriteCond %{SERVER_PORT} =443
RewriteCond $1 !^test/test
RewriteCond $1 !\.(gif|jpe?g|png|ico|css|js)$
RewriteRule ^(.*)$ [
%{HTTP_HOST}...] [R=301,L]
#
# Redirect HTTP requests for SSL checkout page to HTTPS
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(test/test)$ [
%{HTTP_HOST}...] [R=301,L]
#
# Redirect extensionless page requests to remove trailing slash
RewriteRule ^(test/test)/$ [
%{HTTP_HOST}...] [R=301,L]
#
Again, thank you so much g1smd for your reply.