Author Topic: If affiliate links or protected download links return error pages check here.  (Read 8057 times)

Offline Johnny Slater

  • SMP/SGP Designer
  • Pro User
  • **
  • Posts: 219
    • View Profile
    • Viral Membership Script
It seems several web hosts are changing up the way their servers handle php. Some are changing security settings and others are running php as cgi. This causes the .htaccess file to not work and requires a custom file. I have some servers figured out and I will post each one here as I get new configurations figured.

If you have one of the hosting providers listed below change the .htaccess file to the code listed. If you have problems and your host is not listed then PM me and we will work on getting the script to work with your host.

TIC, 1&1, HostGator, slhost, Heart Internet:
Code: [Select]
RewriteEngine On
RewriteRule go/(.*) go.php?var1=$1&var2=$2
Change the file named "go" to "go.php"

1&1:
Code: [Select]
<Files go>
ForceType x-mapp-php4
</Files>

midphase, anhosting, Bluehost, Thirdsphere:
Code: [Select]
<FilesMatch go>
SetHandler application/x-httpd-php5
</FilesMatch>

or
Code: [Select]
RewriteEngine On
RewriteRule go/(.*) go.php?var1=$1&var2=$2

Godaddy, TrustaHost:
Code: [Select]
Options +FollowSymLinks
Options -MultiViews
RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule go/(.*) go.php?var1=$1&var2=$2 [L]
Change the file named "go" to "go.php"

Reseller Panel:
Code: [Select]
RewriteEngine on
RewriteRule go/(.*)(.*) go.php?var1=$1&var2=$2
Change the file named "go" to "go.php"

Others - try this:
Code: [Select]
<Files go>
SetHandler application/x-httpd-php
</Files>
Change the name of the file go.php to just go (remove the .php)
« Last Edit: January 03, 2010, 05:37:06 AM by David Allen »

Offline Prospect

  • Advanced User
  • *
  • Posts: 11
    • View Profile

I use Hostgator, and so I took a look:

The folder containing Simple Member Pro has the following content for
.htaccess:
<Files go>
SetHandler application/x-httpd-php
</Files>


So, where do I insert the following?

RewriteEngine On
RewriteRule go/(.*) go.php?var1=$1&var2=$2


Thanks for clarification

P.

P.S.: Sorry, I am totally ignorant about *nix and PHP



Offline Johnny Slater

  • SMP/SGP Designer
  • Pro User
  • **
  • Posts: 219
    • View Profile
    • Viral Membership Script
You open the .htaccess file and remove everything that is currently there and replace that with what is listed for your host.

Offline Prospect

  • Advanced User
  • *
  • Posts: 11
    • View Profile
You open the .htaccess file and remove everything that is currently there and replace that with what is listed for your host.

Good to know it is a total replacement or overwrite, not an insertion.

Thanks!