Cheap Flights - Loans - Loans - Mortgage News - Problem Mortgage

PDA

View Full Version : Setup Help


csaba
Dec 13th 2004, 12:09 am
Hello
I submitted 3 sites:
Best-prom.com, wedding.pasztorservice.com and shoed.info.
Best-prom.com is validated
This site works with
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} ^(.*).htm [NC,OR]
RewriteCond %{REQUEST_FILENAME} ^(.*).html [NC]
RewriteRule ^(.*) /passthru.php?file=$1
</IfModule> in .htaccess,

But my other two host provider don't allow the rewriteengine method. The pages of these sites are .html named with SSI, so the .htaccess content: adhandler server-parsed .html
The ads aren't on my pages but here is an txt file www.shoead.info/ad_network_ads.txtwhat content the ads.
On pages are a normal SSI call like: <!--#include virtual="/ad_network.php" -->
I would like to add more sites but all my sites built in .html wit SSI.

I don't know what can I do.

Csaba

csaba
Dec 13th 2004, 6:12 am
It's ok.

I made a file ad.php: (what you offer to .php baset sites)
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[0];
?>
and call as an SSI
<!--#include virtual="/ad.php" -->
into my pages.

Csaba

Hank
Dec 13th 2004, 10:52 am
Csaba:

Did you also setup the .htaccess file? Or just / only the .php files for your second two sites?

Hank

Hank
Dec 13th 2004, 3:56 pm
Shawn, csaba, etal:

Never mind. I managed to figure it out.

To use csaba's workaround in Cpanel required a bit of investigation, but now my .html pages are showing ads wonderfully.

If you have Cpanel, you need to setup two separate Apache Handlers:

.htm server-parsed
.html server-parsed

Those handlers are inserted into the .htaccess file, by the way.

Then csaba's SSI code is parsed and ads displayed properly.

Hank

csaba
Dec 14th 2004, 9:30 am
Or if you havn't CPanel you can write direct into .htaccess file
adhandler server-parsed .html .htm

But I'm not shure it is a good method. I have some problem with validating this site waht works with method. The site is PR3, 56 pages indexed on google, and the weight is 0.

Hank is your (site) weight right, or not?

Csaba

Hank
Dec 14th 2004, 9:42 am
Csaba:

I now have two sites validated and ads accepted in the network.

The first one is a 4 page site with .php. It's a brand new site and it's weight is 0.

The second one is about 35 page .html site using your workaround method. It's a PR5 website, with near every inside page a PR5 also and it's weight is 1,116.

Having seen others in the forums boast of 40,000 weights (I'm sure for very large page count sites), I'm very curious as to what these numbers mean, and what it means when a site has a weight of 0.

Hank