Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How to not hard-code sharepoint server address

  Asked By: Sydney Mckenzie         Date: Mar 13, 2010      Category: Sharepoint      Views: 327
 

My team is currently running SPS 2003 on one server. All of the site
creation is hard-coding the server address like so:

http://server:xxxx/sites/designsites/zzzz

This is happening in a lot of other areas as well. this is not
allowing users to login to the sharepoint from home, or if they do
have the IP address, not allowing them to access certain files that
are hard-coded back to the server, breaking the pages. Can someone
tell me how to change this so the name of the server itself does not
come up? Is there a central variable control that can change this
from the top-level down and update all the html in a site collection?

Or a specific way to find all the instances of the files on the
server that reference the server in this way and then change all the
files to reference /sites/designsites/etc....

Tagged:                

 

1 Answer Found

 
Answer #1       Answered By: Jada Clemons          Answered On: Mar 13, 2010       

There is no way to make these URLs relative - that is just the way things work
in SPS. What you can do is use the Alternate Access URL functionality to make
other URL combinations work (e.g. http://ipadress:port/sites/...).

 
Didn't find what you were looking for? Find more on How to not hard-code sharepoint server address Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].