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

Community site session details

Session Id : 5wkCmYv7ZS+i2gp6kn2VXS
Power Pages - Power Apps Portals
Unanswered

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

Like (1) ShareShare
ReportReport
Posted on 4 Jun 2021 08:45:14 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?

I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on 04 Jun 2021 at 10:45:50
    Re: How to stop search engines from indexing the default Portal domain?

    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 04 Jun 2021 at 10:48:42
    Re: How to stop search engines from indexing the default Portal domain?

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 51 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 40 Super User 2025 Season 2

#3
Jerry-IN Profile Picture

Jerry-IN 38

Last 30 days Overall leaderboard
Loading complete