This is a parallel question to another I'd posted here.

We have an issue with SharePoint 2007 and relative URLs through an Apache Reverse Proxy.

The issue comes in using a regex to find all the different types of relative URLs that SharePoint uses and getting them passed through the reverse proxy correctly (our internal site is like internal.site.com, and the external site is like external.site.com/internalsite).

I had a thought: Converting would be simpler if we were always working with absolute URLs.

So, my question in its entirety is: across HTML, CSS, JavaScript, headers, etc. What is the best way to take every relative URL and turn it into an absolute URL?

Note: My team is largely unfamiliar with Apache, so I'm hoping an answer would include helping us select what is the right module for this solution (mod_publish? mod_proxy_html? etc.)

Thanks in advance for any help you can give!

link|improve this question

50% accept rate
I never thought I'd ever see a question with both "SharePoint" and "apache" in the tags. - Have you looked at the Alternate Access Mappings in SharePoint? You should probably look at this first, as SharePoint might have a right headache with hostheaders if you've rewritten the URL with Apache. – James Love Feb 16 '11 at 21:26
Yes, we've already looked at AAM in SharePoint. And I agree, the question is a rather rare case, foisted upon us by the client's security model (with no heads up, I might add). So we're just trying to make the best of a strange situation. We've got many of the URLs converted correctly (images, stylesheets, etc.) using good Regex substitutions on Apache, but we're working on some last buggers (URLs in Javascript, URLs that Sharepoint starts with "\u002f", etc.) -- thanks for your response! – goober Feb 16 '11 at 22:30
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.