Freigeben über


Publishing Pages Page Layout URL issue after exporting a site

I’ve recently tried exporting a site and importing it in a different location in the client’s place. I’ve noticed that after exporting the site, all the pages still have the reference to the page layout in the old server.

After a bit of search, found that this issue was fixed in the April Cumulative update for WSS V3 and MOSS 2007

 

Solution:

You already have an implementation to fix the above issue at the following places

https://code.msdn.microsoft.com/FixPageLayout/Release/ProjectReleases.aspx?ReleaseId=1709

https://stsadm.blogspot.com/2007/08/fix-publishing-pages-page-layout-url.html

I’ve used the Gary Lapointe’s solution, since I have the extensions installed.

Just run the command,

stsadm –o gl-fixpublishingpagespagelayouturl –url "https://intranet/" -scope webapplication   (Web application Scope)

(or)

stsadm -o gl-fixpublishingpagespagelayouturl -url "https://intranet" -scope site -pagelayout https://intranet/_catalogs/masterpage/WelcomeLinks.aspx, /_catalogs/masterpage/WelcomeLinks.aspx (Page Scope)

and you are good to go!!