web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to stop search eng...
Power Pages
Unanswered

How to stop search engines from indexing the default Portal domain?

(1) ShareShare
ReportReport
Posted on by 23

Hello,

 

We implemented a custom domain on the portal for our client. Now, the portal can be accessed via two domains:

  1. The default PA Portals domain, e.g. domain.powerappsportals.com
  2. The custom domain provided by our client, e.g. www.domain.com

This is a bit problematic for our client because they do not want the default domain (.powerappsportals.com) to be visible with search engines. They are also using Google Tag Manager for site analytics and now they are getting duplicated analytics (from the custom and the default domain) which messes up their data.

Is it possible to somehow "block" the default domain from being searchable? Is it maybe possible to use 'no index' directives when the pages are returned from the default domain? And to remove gtag scripts from the DOM? Is this even a viable solution?

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @FilipB ,

    This is an interesting requirement. I don't think this will be achievable with noindex meta tags as you are specifying it on the page level and pages that served by custom domain and by default are basically the same pages. Same for gtag script. You might try to use request liquid object to get the URL of the opened page or page tag but I don't think that this approach will work either. Maybe others will be able to propose other approaches.

  • FilipB Profile Picture
    23 on at

    Thanks for the reply!

    This solution also crossed my mind but it sounds a bit sketchy. As you've said, the problem is that the content is actually being served from the default domain (and the custom one is just a redirect).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
11manish Profile Picture

11manish 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 36 Most Valuable Professional

Last 30 days Overall leaderboard