View Single Post
Old 07-19-2011, 05:24 AM   #13
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Quote:
Originally Posted by hbomb View Post
$reports_url = "http://bigleagues.org/game/lgreports/"; // URL of reports web space, for example: http://www.your-domain.com/your-league/reports/
$reports_url_path = "/bigleagues.org/game/lgreports/"; // Path from document root to reports folder, i.e. if the URL is http://www.your-domain.com/your-league/reports/, the path is /your-league/reports/
?>
The $reports_url_path is wrong I guess. It should not contain the domain. Should be /game/lgreports/

Only edit the .htaccess file in the reports folder! Do not edit any other .htaccess file.

The reports folder should have permissions set to 777 because otherwise the unpack script cannot unpack the tar.gz file.

Try this for your htaccess file:

PHP Code:
RewriteEngine on
RewriteOptions MaxRedirects
=1

RewriteRule 
^box_scores/(.*)\.html$ /game/lgreports/index.php?type=e&name=$[L]
RewriteRule ^coaches/(.*)\.html$ /game/lgreports/index.php?type=g&name=$[L]
RewriteRule ^game_logs/(.*)\.html$ /game/lgreports/index.php?type=f&name=$[L]
RewriteRule ^history/(.*)\.html$ /game/lgreports/index.php?type=h&name=$[L]
RewriteRule ^leagues/(.*)\.html$ /game/lgreports/index.php?type=b&name=$[L]
RewriteRule ^players/(.*)\.html$ /game/lgreports/index.php?type=d&name=$[L]
RewriteRule ^teams/(.*)\.html$ /game/lgreports/index.php?type=c&name=$[L
Andreas Raht is offline   Reply With Quote