locked
Sharepoint Designer 2007 - Moved Permanently RRS feed

  • Question

  • Hey everyone,

    I have a situation here that I don't understand.

    We have a sharepoint website running on our server, on port 2000. If I go to the site using the internal url it translates to the public url. (http://servername:2000 to http://www.domain.com)

    Now when I want to open the website using the designer on the server itself it responds with an error, "Moved Permanently". (301 I think)

    I tried googling this, and realised that either this situation is very environment specific and hasn't occured that much yet, to be able to find an article about it or I'm a terrible googler. :)

    Can anyone help?

    Kind regards & thanks,

    Tobias

     

     

    Tuesday, December 6, 2011 1:45 PM

Answers

  • When you configure SharePoint with internal and public URLs using the standard SharePoint functionality (IIS bindings and Alternate Access Mappings), it won't automatically redirect you from the internal URL to the public URL. So I'm assuming you have some custom configuration which is doing this.

    I'd suggest you need to either configure this custom functionality to not redirect when accessed directly on the server, or else you need some configuration on the server to allow you to access using the public URL, the exact configuration required would depend on exactly how the public URL is hosted (I'm guessing that attempting to use the public URL might direct you through an ISA/UAG server?)

     

    • Marked as answer by Wayne Fan Sunday, December 18, 2011 8:36 AM
    Thursday, December 15, 2011 11:44 AM
  • You were right. The following code was in the web.config file, causing a redirect which confused the Sharepoint Designer.

    <system.webServer>

            <rewrite>

                <rules>

                    <rule name="CanonicalHostNameRule1">

                        <match url="(.*)" />

                        <conditions>

                            <add input="{HTTP_HOST}" pattern="^www\.domain\.be$" negate="true" />

                        </conditions>

                        <action type="Redirect" url="http://www.domain.be/{R:1}" />

                    </rule>

                </rules>

            </rewrite>

            <handlers accessPolicy="Read, Execute, Script" />

        </system.webServer>

    Removing this solved my problem.

     

    Kind regards!

    Wednesday, December 21, 2011 10:58 AM

All replies

  • Hi Tobias,

     

    What permissions do you have? Did you or other users set up redirects on your SharePoint site?

     

    Which URL did you use to open the site in SharePoint Designer? If you are using http://servername:2000, please try to alter to http://www.domain.com

     

    You can refer to the following article, which would tell us how to fix a similar issue.

     

    http://www.thesug.org/blogs/lsuslinky/Lists/Posts/ViewPost.aspx?ID=19

     

    Hope this helps.

     

    Thanks.

     


    Pengyu Zhao

    TechNet Community Support

    Thursday, December 15, 2011 3:32 AM
  • When you configure SharePoint with internal and public URLs using the standard SharePoint functionality (IIS bindings and Alternate Access Mappings), it won't automatically redirect you from the internal URL to the public URL. So I'm assuming you have some custom configuration which is doing this.

    I'd suggest you need to either configure this custom functionality to not redirect when accessed directly on the server, or else you need some configuration on the server to allow you to access using the public URL, the exact configuration required would depend on exactly how the public URL is hosted (I'm guessing that attempting to use the public URL might direct you through an ISA/UAG server?)

     

    • Marked as answer by Wayne Fan Sunday, December 18, 2011 8:36 AM
    Thursday, December 15, 2011 11:44 AM
  • You were right. The following code was in the web.config file, causing a redirect which confused the Sharepoint Designer.

    <system.webServer>

            <rewrite>

                <rules>

                    <rule name="CanonicalHostNameRule1">

                        <match url="(.*)" />

                        <conditions>

                            <add input="{HTTP_HOST}" pattern="^www\.domain\.be$" negate="true" />

                        </conditions>

                        <action type="Redirect" url="http://www.domain.be/{R:1}" />

                    </rule>

                </rules>

            </rewrite>

            <handlers accessPolicy="Read, Execute, Script" />

        </system.webServer>

    Removing this solved my problem.

     

    Kind regards!

    Wednesday, December 21, 2011 10:58 AM