After reading this post and doing some looking around I have found what I think you are looking for.
You need to create the directory:
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
In that directory, create a file, you can call the file anything you want but you must have a number greater than 40 at the start of the file, I recommend 60WebRedirect
In that file place this code:
{
if ($port ne "443")
{
$OUT .= <<'HERE';
## Redirect Web Address to Secure Address
RewriteEngine on
RewriteRule ^/name_of_ibay https://%{HTTP_HOST}/name_of_ibay [L,R]
## End Of Redirect
HERE
}
}
Replace name_of_ibay with the address you would like to redirect.
I have tested this on my system and it seams to work without any problems, you might want to follow the earlier suggestions and lock the directory unless https is used for added security. You will need to remove the lines that look for a user and password, as suggested in the earlier posts.
Since I am very new to sme, this solution may not be the best one available. I think that the best solution would use the database and the server-manager to set up addresses to be redirected. Could somebody point me in the right direction so that I can write this change.
Thank you,
DocLove