locked
URL problem when posting to host provider RRS feed

  • Question

  • User-626502209 posted

    I am using the club starter kit and everything works fine on my local machine using VS2005 and the built in IIS. But when I copy the project to my host provider, I am running into to problems with the navigation menus at the top and bottom that are based on the web.sitemap file. The problem on the host is that it adds the directory name of where the project resides of the host into all of the URL's. For example, when I select the "News" link for the navigation menu, it tries to navigate to http://www.nwccsa.org/NWCCSA/News_list.aspx, when I need it to go to http://www.nwccsa.org/News_list.aspx.

    When I copied it to my host, I put the project into an directory called 'NWCCSA'. When I first load the site entering the address http://www.nwccsa.org it loads fine, it's when I try to use the navigation menus that it adds the NWCCSA folder name into the URL.

    I was able to fix this for the navigation meny by inserting '../' at the begining of all the URL's but I am also noticing this in other areas like login and password recovery when you hit the submit buttons.

    Is there a way to tell it to ignore this directory name globally?

    Here is my web.sitemap file:

    <?xml version="1.0" encoding="utf-8" ?>

    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

    <siteMapNode url="/" title="" description="" roles="*">

    <siteMapNode url="default.aspx" title="Home" description="Welcome page" />

    <siteMapNode url="events_list.aspx" title="Events" description="Calendar of events" />

    <siteMapNode url="news_list.aspx" title="News" description="Recent News" />

    <siteMapNode url="Forms.aspx" title="Forms" description="Forms" />

    <siteMapNode url="Board_Members.aspx" title="Board Members" description="Board Members and contact information" />

    <siteMapNode url="member_redirect.aspx" title="Membership" description="Member registration" />

    <siteMapNode url="Coaches.aspx" title="Coaches" description="Coach Information" />

    <siteMapNode url="Sponsors.aspx" title="Sponsors" description="Visit our Sponsors" />

    </siteMapNode>

    </siteMap>

    Thank you,

    Mark

    Monday, April 21, 2008 11:18 PM

All replies

  • User-1853252149 posted

    For example, when I select the "News" link for the navigation menu, it tries to navigate to http://www.nwccsa.org/NWCCSA/News_list.aspx, when I need it to go to http://www.nwccsa.org/News_list.aspx.

    When I copied it to my host, I put the project into an directory called 'NWCCSA'.

    Do you see your problem now?  You isntalled it to a subfolder but want it in the root folder.  Either reinstall in the root folder or use the subfolder in your path.

    Jeff

    Monday, April 21, 2008 11:44 PM
  • User-626502209 posted

    the problem is still there but I have added the '../" to the web.sitemap to get around the navigation issues. But when I use the login or password recovery controls, it shows up again when I hit the submit button.

    I put the project into the sub folder because it is considered a 'sub-domain' on my host provider. I then configure the sub-domain to use the sub folder as it's root.

     I have my 'main' domain setup in the root folder so if I copied this project to the root folder, then I would overwrite files being used my my 'main' domain.

     

     

    Monday, April 21, 2008 11:57 PM
  • User-626502209 posted

    Sorry I missed the other suggestion, what did you mean by 'use the subfolder in your path'?

    Tuesday, April 22, 2008 12:15 AM