Solved

seo and include files

Posted on 2014-02-28
6
248 Views
Last Modified: 2014-02-28
I use tons of include files in my asp pages. But i don't want to have them indexed by seo's
if i put this tag (<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">) in the include files how it will be placed in the asp page i do want indexed.
How do i do this ?
0
Comment
Question by:isnoend2001
6 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 300 total points
ID: 39895537
Unless there is a direct HTML link to the page then they will never be indexed.
Search engines don't know anything about the files you include in the page.
0
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 100 total points
ID: 39895564
The include file is rendered as if the html was there in the first place.
0
 
LVL 54

Assisted Solution

by:Julian Hansen
Julian Hansen earned 100 total points
ID: 39895650
Rendering of pages by script is a one way function

master page + include page [+ include page [..]] = rendered html page

Open in new window


Spiders index the rendered html page only - there is no way for the spiders to work out how that page was constructed or where the component parts came from - all they see is the html as it is sent to the browser - and that is what they index.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:isnoend2001
ID: 39895907
2 example include files:
Folder: GoogleAds
In the page
<!-- #include virtual = "GoogleAds/tallSkyScraper160x600.asp" -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-$$$$$343";
/* wideSkyScraper160x600 */
google_ad_slot = "3424857368";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



Folder: Includes_ASP
In the page
<!-- #include virtual ="/Includes_ASP/footer.asp" -->
Footer.asp contents
<div style="text-align: center;">
<a href="http://mysite.com/index.htm">Home</a>
| <a href="http://mysite.com/aboutmysite.asp">About Us</a>
| <a href="http://mysite.com/support.asp">Contact Us</a> |
<a href="http://mysite.com/links.htm">Links </a>
|
 <a href="http://mysite.com/Privacy.htm"> Your Privacy</a> |
 <a href="http://mysite.com/SiteMap.asp">Site map</a> |

<script type="text/javascript">
var _u = "Rob";
var _d = "mysite.com";
var _l = _u + "@" + _d;
var _m = "E-mail Us";
var _a = "<a href=mailto:";
var _e = "<\/a>";
document.write(_a+_l+">"+_m+_e);
</script>
<br>
Copyright &#169; 2002-2014 mysite All rights reserved.<br>
This page last updated 02-28-2014
0
 
LVL 58

Accepted Solution

by:
Gary earned 300 total points
ID: 39895925
Things like this
<!-- #include virtual = "GoogleAds/tallSkyScraper160x600.asp" -->

do not show in your HTML, they are processed at the server.
0
 

Author Closing Comment

by:isnoend2001
ID: 39895971
Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error in script 11 56
How to make interactive HTML code pages like w3school or Codecademy? 3 42
Input box width 6 26
Bottom border change 5 15
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question