Alias doesn't work

fesqel

Verified User
Joined
Jul 7, 2011
Messages
8
Hi there,
I set an alias pointer in domain pointers for my second.com domain. Something like this:
sub.first.com alias second.com
After this, any request for sub.first.com must see second.com in the address bar, right? But it doesn't work. Still I see sub.first.com.

Both are virtual and the web app. is physically parked in sub.first.com

Thanks
 
Hello,

An alias and a pointer aren't the same.You should use pointer I guess, or mod_rewrite rules in .htaccess.
 
Well in the Domain Pointers section I have this check box of "Create as an Alias". A real pointer is not I want because it changes the url. Maybe mod_rewrite in .htaccess, then the question is: What should type in it?

Thanks
 
After this, any request for sub.first.com must see second.com in the address bar, right? But it doesn't work. Still I see sub.first.com.

Honestly I don't know what you try to do... what does not work? And how should it work?

So I guess you should Google in order to read how to use mod_rewrite.
 
Suppose we have a forum.indirectadmin.com that the real VBulletin and it's files are parked in there. Then again we have this directadmin.com which is just a domain hosted on the same server with forum.indirectadmin.com(No actual VBulletin is on directadmin.com). What I want is when a user send a req for directadmin.com, VBulletin shows up while the user would see directadmin.com in the address bar.
Am I clear?

Thanks
 
That is not the same as you posted in a head of the thread. OK, and what is wrong when you access directadmin.com? You get redirected to forum.indirectadmin.com? If so, I guess it's a VBulletin who redirects you, as it might be some kind of a protection against piracy.
 
Yes, that the problem, but the cms is not commercial. There is a wordpress working with a phpBB. So, I doubt it's a protection.
By the way, this is what I did:
domain pointers.jpg
So what am I doing wrong? Or, what do I need to do?

Thanks
 
I've never used VBulletin, check it's configs, and ask the question on VBulletin forums. That has nothing with directadmin, as alias settings seems to be OK, and I think it's VBulletin who redirects you.
 
I told you. Mine is not VBulletin. Second.com is working with a WordPress and a phpBB. Both are absolutely free.

Thanks
 
That does not really matter, both of them a WordPress and a phpBB have a domain name saved in settings...

to be sure, create a blank html page in the public_html of the domain, and try to access it by both hostnames, if you don't get redirected, then it's definitely CMS which redirects you.
 
I set an alias pointer in domain pointers for my second.com domain. Something like this:
sub.first.com alias second.com
After this, any request for sub.first.com must see second.com in the address bar, right? But it doesn't work. Still I see sub.first.com.
If you check alias then you'll always see sub.first.com. If you want to see second.com then you need to leave that unchecked, but then you'll always see the root URL; you won't be able to bookmark individual pages.

Jeff
 
Back
Top