문제

I have an STS-based site collection and I have changed the "default.aspx" default document reference as follows:

My onet.xml:

<Module Name="Default" Url="" Path="">
      <File Url="etusivu.aspx" NavBarHome="True">

This way the site works when I use the URL http://SITEURL/etusivu.aspx but if I use http://SITEURL/ it doesn't redirect to etusivu.aspx. Even if I change "default document" in IIS to be "etusivu.aspx" in the correct webapp it doesn't work either.

Is there any possible way to correct this redirect?

Using SPS based site definition works but....


도움이 되었습니까?

해결책 2

Solved problem.

I provisioned new "default.aspx" which was my old and correct etusivu.aspx (chosted the file) with a feature to site collections /root.

No features need to activate for this. Just make feature which provisions the file to the root of site collection and you are good to go.

다른 팁

You need to set the Welcome Page for the site. This can be done either in your ONET.XML under <WebFeatures> <Properties>:

<Property Key="WelcomePageUrl" Value="$Resources:cmscore,List_Pages_UrlName;/etusivu.aspx"/>

or manually in Site Settings, Look and Feel:

<siteurl>/_layouts/AreaWelcomePage.aspx

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top