View Single Post
Old 03-02-2016, 05:41 PM   #64
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Alright, thanks for the FTP access. First let's check whether the .htaccess file does what it's supposed to do:
I added a file hallo.php to your league_reports folder and this rewrite condition to the .htaccess file:

RedirectPermanent /league_reports/test.php http://www.sblootp.net/league_reports/hallo.php

When navigating to http://www.sblootp.net/league_reports/test.php I was forwarded to hallo.php, so the redirect works. PHP worked as well.
Still, links like these just returned a "file not found":
Home

I added echo "hello world"; to the index PHP file, but it was not displayed when trying to open Home

So the .htaccess file obviously does not redirect the URLs to the index.php file. Something most be wrong with the redirect. After looking a bit closer at the rewrite rules, I figured that the paths were not correct. It was
RewriteRule ^box_scores/(.*)\.html$ '/public_html/league_reports/index.php?type=e&name=$1' [L]

/public_html is not part of the URL so it makes no sense here. In OOTP 16, that's the last text box in the "Create PHP server script files", "path to reports folder".

So for similar issues we should always remember to compare the examples in that dialog with the own settings.
Good luck and have fun with your online league!
Andreas Raht is offline   Reply With Quote