Redirect site to subdomain

How could I redirect a site to a subdomain?

http://server/sites/thesite

to

thesites.sites.local?

Created a DNS entry for thesite.sites.local to point to the web application but it didn't work.
Would I need to get Alternate Accessing Mappings?
LVL 6
miketech99Asked:
Who is Participating?
 
raybiesCommented:
OK now I'm pretty sure I know what you want and it's not really possible without an HttpModule and an AAM.

1.-
If you ping
http://thesites.sites.local 
or
http://server/

and they both go to the same server/IP... the DNS bit is done.

>>>>

2.- Create an AAM extranet/intranet anything that isn't default.

3.- Now the HttpModule will read every request and if it is for http://thesites.sites.local it should redirect to http://thesites.sites.local/sites/thesite/

>>>>>>>>>>>>
If it's just 1 redirect
eg:
http://thesites.sites.local/page.aspx
to
http://thesites.sites.local/sites/thesite/page.aspx

then you can use javascript or ASP.net.
But the HttpModule will make it look like the everything is at the root.
0
 
itgrooveCommented:
Yes, SharePoint needs to 'listen' on the URL you are sending to. This is achieved by creating an AAM.
Choose 'Extend an Existing Web Application' in Central Administration.
0
 
raybiesCommented:
Do you need to redirect everything under it too?

eg:

http://server/sites/thesite/page.aspx
to
http://thesites.sites.local/page.aspx

If yes then you need an HttpModule.

If it's just the default page then you can use Javascript, HTML or aspx.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
miketech99Author Commented:
So if I extend the web application
http://server/

to

http://thesites.sites.local 

I would then be having to access:

http://thesites.sites.local/sites/thesite/page.aspx. instead I would like to access a site under the site collection by going to http://thesites.sites.local/. I do not want a redirect either so the user can't tell the original url.

Am I clarifying it enough?


0
 
miketech99Author Commented:
0
 
raybiesCommented:
I think I get what you want.

1.- Create a DNS record that points to the server IP
2.- Create an Intranet/Extranet alternative access mapping

Central Administration > Operations > Alternate Access Mappings    
0
 
miketech99Author Commented:
The DNS record to point to the server is done.  The site is not on port 80 though.

In AAM the current web application is http://server/

So what type of AAM's do I need to create so http://thesites.sites.local  will point to: http://server/sites/thesite/page.aspx ?
Thanks
0
 
GreatGermCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.