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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.