Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Frames Site Trick? Please need advice

I want to use my affiliate site on another domain

3:53 am on Mar 7, 2006 (gmt 0)

5+ Year Member

Advice needed for framed site.
Hi, I want to take my affiliate site and import it into a new site, add title, meta tags, keywords, ect. I had read that the <noframe> tags are indexed by google, but rank much lower in the SERPS. I also read that I can put keywords in an external javascipt file to avoid the <noframe> penalty, I think I'm close, but I don't know javascript very well. Here is the code for my framed site, and the external javascript file. Can someone please take a look at it and tell me where I'm going wrong?

Thanks. RonMo

here is the HTML of the framed page (name = example.html) :


Gas Prices -
Improve MPG</title>

<meta name="Description" content="Want better Gas Prices?. MPG caps work on gas and diesel engines. ">
<meta name="Keywords" content="gas prices, improve mpg">

<link rel="stylesheet" type="text/css" href="../css/text.css">

<frameset cols="20%" border="10">

<frame src="http://example.biz" name="body">

<script type="text/javascript" language="JavaScript" src="file.js"></script>



Here is the external .js file : (name = file.js)


<!--Place This Javascript in an external file-->

document.writeln('<frameset rows="100%,*" frameborder="no" framespacing="0" border="0">')
document.writeln('<frame src="file.js" scrolling="auto" name="main">')
document.writeln('<frame src="blank.html" scrolling="no" name="blank">')



gas prices are too high, so find cheap gas for gas engines, diesel engines, and marine diesel engines.
<b>diesel fuel injection system</b>, diesel nozzle assy, diesel servicer, to improve gas mileage. Reduce engine wear and tear.

<b>Diesel nozzle assy</b>, marine diesel engines, diesel servicer, engines, fuel injection system,
<b>find cheap gas</b>, <b>gas prices</b>,



Thanks in advance for the help.


[edited by: volatilegx at 2:06 pm (utc) on Mar. 7, 2006]
[edit reason] examplified URLs [/edit]

2:07 pm on Mar 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Welcome to WebmasterWorld :)

I'm not sure I understand what you are trying to do, but here are some problems I see right off the bat:

1) You are nesting framesets.
2) It looks like file.js is calling itself over and over in an infinite loop.

8:15 pm on Mar 9, 2006 (gmt 0)

5+ Year Member

OK, I got rid of the frames. What I want to do is call up a page from another domain to fill the content. I use a external javascript to do it, and it works nicely. But I want to block the SE's from reading the external .js file. I tried this from the .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://([-a-z0-9]+\.)?my-domain\.com [NC]
RewriteRule \.(js¦vbs)$ - [F,NC,L]

It is supposed to allow access to the .js file only if requested by the calling page, not directly from external requests. It doesn't seem to work though; I know 0 about .js and I was just trying a file someone else had written. Any thoughts on the subject?

Thanks, RonMo

9:30 pm on Mar 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

The rewrite doesn't look right to me either, but I'm not exactly sure what's wrong with it. Maybe the part about the .js extension belongs in the condition instead of the rule?
10:43 pm on Mar 9, 2006 (gmt 0)

5+ Year Member

I wish I knew. As I said, I know nothing about .htaccess, but maybe someone here can give it a look?



Featured Threads

Hot Threads This Week

Hot Threads This Month