Solved

seo and include files

Posted on 2014-02-28
6
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

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 57

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change how page is organized 3 51
HTML question 2 33
change site header 8 32
CSS styling problem 3 28
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…

751 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