Skip to content

Commit 2de0806

Browse files
committed
2 parents 7ed6a0a + 8b0f64b commit 2de0806

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ RewriteRule ^(index.php)?$ /pocketmine.php
1111
RewriteRule ^pg/viewSrc\.php/(.*)$ /pg/viewSrc.php?path=$1
1212
RewriteRule ^pg/viewSrc/(.*)$ /pg/viewSrc.php?path=$1
1313
RewriteRule ^(pg/([^\.]+)(\.[a-z]+))/.*$ /$1
14+
RewriteCond %{REQUEST_URI} !/robots\.txt$ [nocase]
15+
RewriteRule \.txt$ - [forbidden,last]
1416

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ pemapmodder.zapto.org source (partial)
1010
## Installation
1111
Clone this repo at the **document root** of your website. It is because some hyperlinks explicitly indicate as `/file.php`. Assuming `/var/www/html` in this page.
1212

13-
Please allow read/write access to the parent directory of the document root of the website, i.e. `/var/www`. I do that with `chmod -R www-data:www-data /var/www`.
13+
Please allow read/write access to the parent directory of the document root of the website, i.e. `/var/www`. I do that with `chown -R www-data:www-data /var/www`.
1414

15-
A GitHub service client\_id + client\_secret is required to be set up at /var/www/cid.txt and /var/www/secret.txt
15+
A GitHub service client\_id + client\_secret is required to be set up at `/var/www/cid.txt` and `/var/www/secret.txt`. The service should redirect the clien to `/insta/accessToken.php`.
1616

1717
A GitHub API access token for any valid account (without any scopes required) is required at /var/www/token.txt
1818

0 commit comments

Comments
 (0)