Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsWant to remove print view from Google searchWant to remove print view from Google search
Previous
 
Next
New Post
1/22/2016 12:13 PM
 

Hello,

We do not have print allowed in the module and do not want to use it. Because of this the print friendly page is not styled and not all features work correctly. We just discovered that Google has indexed this page exposing it in search. Are we able to shut this page down completely and make a note in our robots file? How would you comment it in the robots file so we don't affect other pages? The printer friendly page url is 

(domain name)/Events/Event/mid/810/itemid/33/ctl/Details/ShowNav/False/dnnprintmode/true?SkinSrc=%5BG%5DSkins%2F_default%2FNo+Skin&ContainerSrc=%5BG%5DContainers%2F_default%2FNo+Container#fancybox-detail

Thanks for your insight.
Mike

 
New Post
1/22/2016 11:04 PM
 
If you set IIS to allow RESPONSE_X_Robots_Tag as a new server variable then you could use an outbound rewrite rule to issue a proper header tag. This should work for you. I tested it with fiddler. Google will respect the X Robots Tag.

 

<outboundRules>

<rule name="Set custom HTTP response header">

<match serverVariable="RESPONSE_X_Robots_Tag" pattern=".*" />

<conditions>

<add input="{REQUEST_URI}" pattern="/dnnprintmode/*" />

</conditions>

<action type="Rewrite" value="noindex"/>

</rule>

</outboundRules>

 
New Post
1/23/2016 11:05 AM
 

I appreciate the input, but I'm hoping to find a solution that I can implement within DNN and/or robots.txt or even the web.config. I don't have that level of access to the IIS. Thanks.

 
New Post
1/23/2016 2:17 PM
 
Did you try...

User-agent: *
Disallow: /dnnprintmode/


... in your robots.txt

 
New Post
1/25/2016 10:46 AM
 

We haven't tried that. With my limited knowledge of DNN, I know it doesn't have conventional directories. Why do you suggest /dnnprintmode/ and not something like /Events/Event/mid/810/itemid/33/ctl/Details/ShowNav/False/dnnprintmode/  which I know would only be for one particular entry (itemid/33)?

Thanks.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsWant to remove print view from Google searchWant to remove print view from Google search


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out