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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...What file is called to load meta data?What file is called to load meta data?
Previous
 
Next
New Post
12/5/2014 10:14 AM
 
Bryan Myers wrote:
I inherited a mess, so I have to work with the environment I have... but...

What would you say is a best solution for this problem.

I have two separate installs for DNN. One is for development / testing and the other is for live / production.

I never do a full publish, just the files that have been changed. I don't want the development site indexed by search engines, so the list guy that I replaced, put the meta no-index tags in the /default.aspx page. I didn't know this was the case and an third party developer asked for the file to be published. This caused a deindexing of our site.

Not worrying about an upgrade anytime soon, so i thought I would write a bit of code to check the domain and only put the no-index metas in on the development url.

Thoughts?

 I see two options.

A. Change robot.txt on the dev site and don't publish that to the live site.
B. Inject the meta tag using our skin object, if also has a filter on url, that way you only inject the meta tag if it's the test site.

The problem with upgrades is that you or someone else in the future most likely forgot about the code in default.aspx when the upgrade is done and you risk the dev site being indexed.

 
New Post
12/5/2014 10:24 AM
 
Very valid point. Thank you for the information. I am sure I will see ya around the forums.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...What file is called to load meta data?What file is called to load meta data?


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