View Full Version : cloaking a url redirection
rewing
01-31-2007, 08:54 AM
I want to setup a redirection for a subdomain that cloaks the "real" url of the destination page.
ie. subdomain.mydomain.com gets redirected to www.mydomain.com/site/subdomain, but only shows subdomain.mydomain.com in the browser.
Now I've build a subdomain, and redirected it to a folder,also there's another folder of subdomain when i create a redirection,but it's not the same because i put my destination into a 2 level directory.
could some one kindly tell my how to cloak such a redirection?
agcssautomotive.com
01-31-2007, 09:03 AM
Im not quite sure what you mean.... But I think you mean this...
You have www.mydomain.com/folder
and you have folder.mydomain.com
so visitors can visit both and have displayed either www.mydomain.com/folder or folder.mydomain.com in their browser address
Solution is to create a redirect for www.mydomain.com/folder to point to folder.mydomain.com
Was that helpful?
areidmtm
01-31-2007, 09:04 AM
BH does not support this. For sub-domains you have to have the wild card option turned on in apache, and BH does not have that turned on.
You can do this with regular domains, IE: domain.com -> domain.com/mainfolder but still only show domain.com in the URL. You cannot do this with sub-domains.
rewing
01-31-2007, 09:31 PM
Im not quite sure what you mean.... But I think you mean this...
You have www.mydomain.com/folder
and you have folder.mydomain.com
so visitors can visit both and have displayed either www.mydomain.com/folder or folder.mydomain.com in their browser address
Solution is to create a redirect for www.mydomain.com/folder to point to folder.mydomain.com
Was that helpful?
Thanks!
But what I mean is that when visitors type http://bbs.mydomain.com to visit my forum, it won't became http://www.mydomain.com/bbs, I want the address bar display only my subdomain.Ie http://bbs.mydomain.com/ won't display as http://www.mydomain.com/bbs, and so all the files, such as http://bbs.mydomain.com/2.html won't be displayed as http://www.mydomain.com/bbs/2.html
:confused:
rewing
01-31-2007, 09:35 PM
BH does not support this. For sub-domains you have to have the wild card option turned on in apache, and BH does not have that turned on.
You can do this with regular domains, IE: domain.com -> domain.com/mainfolder but still only show domain.com in the URL. You cannot do this with sub-domains.
what a pity! I know dreamhost and many other space provider support this.
BH should do something to fix it!
areidmtm
01-31-2007, 09:55 PM
I think we are both confused on what you what it to do. If you create a sub-domain the URL will/should stay sub.domain.com. If you are trying to make sub.domain.com have a silent redirection to /public_html/domain/sub/folder/forum and only have it stay sub.domain.com instead of having it display sub.domain.com/folder/forum.
does that make since. If you're having problems with the sub-domain, contact support.
rewing
02-01-2007, 12:14 AM
Please type bbs.eccee.com and visit it. you'll find what I mean
I use IE browser and you'll find finally it displayed as http://www.eccee.com/bbs/*.*
I want it displayed as http://bbs.eccee.com/*.*
areidmtm
02-01-2007, 10:14 AM
I'd get a hold of support and they can check that for you. It should be staying as bbs.eccee.com. Make sure that you don't have any redirections going or anything weird in your .htaccess file that would redirect it.
rewing
02-01-2007, 09:31 PM
I'd get a hold of support and they can check that for you. It should be staying as bbs.eccee.com. Make sure that you don't have any redirections going or anything weird in your .htaccess file that would redirect it.
I don't quite get you.
www.eccee.com is an add-on domain, and and I set a redirection to redirect bbs.eccee.com to www.eccee.com/bbs, you mean i shouldn't set up any redirection?
what should i do if i want sub1.domain.com redirecting to www.domain.com/site/sub1/ and still stay in browser address bar as sub1.domain.com?
areidmtm
02-01-2007, 10:58 PM
what should i do if i want sub1.domain.com redirecting to www.domain.com/site/sub1/ and still stay in browser address bar as sub1.domain.com?
That you cannot do. You cannot do a clocked URL with subdomains. You can redirect it, but it wont be the same in the URL
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.