Hello people!
Following situation:- "my_ibay" can be reached as a normal way using the URL
http://domain.tld/ibay (it isn't the main ibay of the domain)
- this ibay is "protected" by it's password.
The wished situation:- I would like to "run" this ibay only with the URL
http://subdomain.domain.tld- Users going to
http://domain.tld/ibay should get an info to use
http://subdomain.domain.tld or be redirected to this URL.
- The protection by an unique password should be further active.
What is working:Using the contrib smeserver-webapps-common I was able to create the subdomain and to make it working with the files of the ibay:
db domains set subdomain.domain.tld domain Description "my ibay" Content Primary Nameservers internet TemplatePath WebAppVirtualHost DocumentRoot /home/e-smith/files/ibays/my_ibay/html RequireSSL disabled
http://subdomain.domain.tld is now active and works as well as
http://domain.tld/ibayWhat is missing:the "disabling" of
http://domain.tld/ibay (=info about the new URL or redirection). The parameter "AliasOnPrimary no" as used by web applications would be welcome!!
I tried to write a template as done for the redirection from http to https:
<Directory /home/e-smith/files/ibays/my_ibay/html>
RewriteEngine on
RewriteRule ^/my_ibay http://subdomain.domain.tld
</Directory>
but it doesn't work: I get an error 403 "Forbidden
You don't have permission to access /subdomain/ on this server."
What is wrong?
What can I do?
Thanks.
Bye
Arnaud