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

Notifications

Announcements

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,496 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard