0

I renamed the home page .aspx file for a classic site collection from home.aspx to home_classic.aspx.

By doing this, the site title on the home page itself is not maintained. Upon initial creation it said this:

enter image description here

However, upon renaming the .aspx file what used to be SER AM BSS is not exactly the same as the file name, i.e. home_classic.

How can I maintain the site title whilst renaming the .aspx file?

EDIT:

Here's what the result is when I Rename-PnPFile 'home.aspx' to 'home_classic.aspx':

enter image description here

It all of a sudden takes the file name on the home page.

1

Site title (name) and Name of the home page for site are two different things. Site title will not be changed if you rename the home page for that site.

Follow below steps to change site name:

  1. Go to your site and click on Settings (Gear icon)
  2. Click on Site Information
  3. Enter desired site name in the text box of Site name
  4. Click Save

enter image description here

| improve this answer | |
  • Thanks, all true what you say but why when I rename the .aspx file, e.g. via Rename-PnPFile to 'Home_classic' the home page carries the .aspx file's name below the site title which has not changed? Please see my edited intitial post, where I added another screenshot. I want either what's now 'Home_classic' not to be there at all or be named as previously, like the site title prior to renaming the .aspx file itself. – colonel_claypoo Jun 26 at 10:44
  • I test it and update the result in my reply. – Julie_MSFT Jun 30 at 9:14
1

Renaming the homepage name will only affect the display name in the address bar:

enter image description here

enter image description here

Edit: I run the below pnp powershell to rename the home page of current site collection in site pages library, only the address bar URL has been changed.

Rename-PnPFile -ServerRelativeUrl /sites/site collection name/SitePages/HomeW.aspx -TargetFileName HelloTest.aspx -OverwriteIfAlreadyExists

enter image description here

Please create a new site collection and test again.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.