Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-16-2007, 04:21 PM   #1
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
SmartTrafficTrader Requires PHP Index? Nooo!

So I just installed Smart Traffic Trader on a couple sites and then I noticed that the documentation states that in order to run it on a page, the page must have a .php extension.

"In order to count incoming hits, you need to add a short PHP code to every page where your trades will send traffic to. All those pages must have .php extension, otherwise it won't work (you can't use .shtml, because some features of the script wouldn't work). If they don't have .php extension, rename them (if your index page is index.html, you need to rename it to index.php etc.)."

Why isn't this made known before downloading and installing? Does anyone know of a way around this?

Thanks,
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:27 PM   #2
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
you could set Apache to parse html docs with the php parser...or you could recode the software. Either way you need to use php to run it since that is what it's coded in.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:32 PM   #3
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Or you can simply include php in your html files
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:33 PM   #4
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
There's really no way around that, but a quick hack (if supported by your server/configuration) is to add php_flag prepend_file /path/to/file.php into your .htaccess and set it to use the php parser via the AddType directive - but this will cause it to be run for EVERY file.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:33 PM   #5
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by KlenTelaris View Post
Or you can simply include php in your html files
But, in order to be able to successfully do that you need to set a handler to parse html as php.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:34 PM   #6
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by toonpornblog View Post
There's really no way around that, but a quick hack (if supported by your server/configuration) is to add php_flag prepend_file /path/to/file.php into your .htaccess and set it to use the php parser via the AddType directive - but this will cause it to be run for EVERY file.
....scratch that.

Last edited by Nookster; 01-16-2007 at 04:35 PM..
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:44 PM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
do some mod_rewrite magic from index.html to index.php?
but why not just leave it as index.php, why do you want it to have index.html so badly anyway?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:49 PM   #8
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Quote:
Originally Posted by woj View Post
do some mod_rewrite magic from index.html to index.php?
but why not just leave it as index.php, why do you want it to have index.html so badly anyway?
One reason is that I'm afraid my page's PR might decrease, plus I'll have to rename every page on all of my sites to .php, change all the directory links, recreate sitemaps, etc.

It just seems like a large hassle. One I could have avoided had they forewarned me on their site.

I appreciate all the help fellas, but seeing as how I'm php illiterate, I have almost no clue as to how to apply the tips you've given me.

I do appreciate it though.


c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:52 PM   #9
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by c-lo View Post
One reason is that I'm afraid my page's PR might decrease, plus I'll have to rename every page on all of my sites to .php, change all the directory links, recreate sitemaps, etc.

It just seems like a large hassle. One I could have avoided had they forewarned me on their site.

I appreciate all the help fellas, but seeing as how I'm php illiterate, I have almost no clue as to how to apply the tips you've given me.

I do appreciate it though.


c-lo
eh, well it looks like the only thing you can do then in your case is to recode the scripts as .html, make a handler be able to parse html as php and that's that...but yea, need a programmer in your case i guess.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:52 PM   #10
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Like what woj said. If you have to keep your existing page type... I'm guessing because you have a warning page or something setup on index, use the following (assuming your page is tgp.shtml):

RewriteEngine On
RewriteBase /
RewriteRule ^tgp\.shtml$ tgp.php
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:55 PM   #11
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
just addhandler in httpd.conf for html.. ask your admin to do it, he'll know
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:56 PM   #12
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Oh, just to add, to setup the handler...
for CPanel with Apache: CPanel Home - Apache Handlers
enter:
.html
x-httpd-php
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 04:58 PM   #13
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
you could do it through .htaccess if you want email me if you need help
but having it as .php it will not decrease pr
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 05:16 PM   #14
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Wow, thanks for all the help fellas.

Okay, say I do go through all the page renaming, etc...how can I make my mainpage (aka blah.com) default to the .php page. I know if I have index.html it will default to that if my domain is typed in, but how would I make it default to index.php when my domain is typed? Surely this is possible.

EDIT: Also, would changing the page extension affect my placement in the SERPs?

Thanking you,
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust

Last edited by c-lo; 01-16-2007 at 05:18 PM..
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 05:33 PM   #15
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
Quote:
Originally Posted by c-lo View Post
Wow, thanks for all the help fellas.

Okay, say I do go through all the page renaming, etc...how can I make my mainpage (aka blah.com) default to the .php page. I know if I have index.html it will default to that if my domain is typed in, but how would I make it default to index.php when my domain is typed? Surely this is possible.

EDIT: Also, would changing the page extension affect my placement in the SERPs?

Thanking you,
c-lo
again, this is another apache setting to be set in httpd.conf or an .htaccess
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 05:59 PM   #16
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Okay, thanks studiocritic...I'll see if I can get my host to configure that for me.

Anyone got an answer to my last question; will the .php change affect my SE placement?

later
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 06:10 PM   #17
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
someone already answered that.. google doesnt care what your files are named.

as far as changing existing links, you'd need to do a proper 301 redirect from all of the old URLs. this could have some temporary negative effects on your rankings. if these are new sites, it doesnt matter at all.
__________________
254342256
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 06:38 PM   #18
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
They're aged a little...and actually, I think someone answered the question as to whether or not it would affect pagerank not SE placement.

Well I guess I'm gonna start settin up redirects and changing links...thanks for the help, man.

later
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 06:43 PM   #19
bareskin
Confirmed User
 
bareskin's Avatar
 
Join Date: Nov 2006
Location: Pimpin in socal
Posts: 619
Quote:
Originally Posted by c-lo View Post
Why isn't this made known before downloading and installing? Does anyone know of a way around this?
Thanks,
c-lo
shouldv'e done some research
__________________
Globat.com hosting company has shitty customer service skills :: please be advised::

Icq# 394599740
bareskin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 07:22 PM   #20
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Quote:
Originally Posted by bareskin View Post
shouldv'e done some research
I asked around the forum about different tradescripts a little while back. I've never used a script that had these requirements so it didn't exactly cross my mind. What exactly am I suppose to ask to garner a response of "it requires your entire site to be .php"?

In fact, I've never heard of a script requiring such. I shouldn't have to do research on something like this, it should be on the site. In my opinion, that's like installing Windows Vista and the help files tell you it's not backwards compatible.


c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust

Last edited by c-lo; 01-16-2007 at 07:23 PM..
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 07:29 PM   #21
mattz
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Location: AZ
Posts: 7,697
Quote:
Originally Posted by c-lo View Post
Okay, thanks studiocritic...I'll see if I can get my host to configure that for me.

Anyone got an answer to my last question; will the .php change affect my SE placement?

later
c-lo
it will not matter
mattz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 07:30 PM   #22
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Thanks, mattz!
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 07:44 PM   #23
StarkReality
Confirmed User
 
StarkReality's Avatar
 
Join Date: May 2004
Location: 4 8 15 16 23 42
Posts: 4,444
In general, you should always have a mod rewrite to define the standard URL, either domain.com or www.domain.com. Example: You want www.domain.com, so you do a rewrite for domain.com, domain.com/index.html and www.domain.com/index.html (or /index.php, whatever you index page's extension is) to automatically change to www.domain.com or you could end up with 4 pages indexed, all with different PR and duplicate content ! Just one idiot linking to domain.com/index.html could (with a little bad luck) ruin your SE rankings, even if you have 1000 incoming links to www.domain.com

How is your domain indexed ? If it's (www.)domain.com/index.html, you'll temporarily face a drop of your PR and ranking, but they will recover over 3-6 months, if it's just (www.)domain.com, there will be no (temporary) interruption in your SE traffic.

Last edited by StarkReality; 01-16-2007 at 07:45 PM..
StarkReality is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 07:49 PM   #24
StarkReality
Confirmed User
 
StarkReality's Avatar
 
Join Date: May 2004
Location: 4 8 15 16 23 42
Posts: 4,444
Repost, sorry, removed the links on the URLs, better to read:

In general, you should always have a mod rewrite to define the standard URL, either domain.com or www.domain.com. Example: You want www.domain.com, so you do a rewrite for domain.com, domain.com/index.html and www.domain.com/index.html (or /index.php, whatever you index page's extension is) to automatically change to www.domain.com or you could end up with 4 pages indexed, all with different PR and duplicate content ! Just one idiot linking to domain.com/index.html could (with a little bad luck) ruin your SE rankings, even if you have 1000 incoming links to www.domain.com

How is your domain indexed ? If it's (www.)domain.com/index.html, you'll temporarily face a drop of your PR and ranking, but they will recover over 3-6 months, if it's just (www.)domain.com, there will be no (temporary) interruption in your SE traffic.
StarkReality is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2007, 11:06 PM   #25
c-lo
Confirmed User
 
c-lo's Avatar
 
Join Date: May 2005
Location: On search pages, on ICQ @ 308 7 43669, and in the U.S.
Posts: 925
Oh, I see. Excellent post, StarkReality. I'll try to get that changed.
Would I also make these mod rewrite changes through the .htaccess file?

Thanks,
c-lo
__________________
The AlphaPhaze Network
Traffic & Hardlink Trades | Sponsors | Resources
The adult marketing network you can trust
c-lo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.