Link to home
Start Free TrialLog in
Avatar of miketech99
miketech99Flag for United States of America

asked on

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?
Avatar of itgroove
itgroove
Flag of Canada image

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.
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.
Avatar of miketech99

ASKER

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?


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    
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
ASKER CERTIFIED SOLUTION
Avatar of raybies
raybies
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.