A simple pastebin you can run on any server with Apache and PHP.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

_htaccess 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. RewriteEngine on
  2. RewriteBase /textfiles/
  3. # Send requests without parameters to textfiles.php.
  4. # RewriteRule ^$ textfiles.php [L]
  5. # Send requests for index.php to textfiles.php.
  6. # RewriteRule ^index\.php$ textfiles.php [L]
  7. # Send requests for index.html to textfiles.php.
  8. # RewriteRule ^index\.html$ textfiles.php [L]
  9. # Send requests for textfiles.css to textfiles.css.
  10. RewriteRule ^textfiles\.css$ textfiles.css [L]
  11. # Send requests for textfiles.js to textfiles.js.
  12. RewriteRule ^textfiles\.js$ textfiles.js [L]
  13. # Send requests for textfiles.php to textfiles.php.
  14. RewriteRule ^textfiles\.php$ textfiles.php [L]
  15. # Send requests for textfiles.html to textfiles.php.
  16. # NOTE: THIS IS NOT A TYPO!
  17. RewriteRule ^textfiles\.html$ textfiles.php [L]
  18. # Send requests for files that exist to textfiles.php (raw).
  19. RewriteCond %{REQUEST_URI} ^\/textfiles\/(.+)/raw$
  20. RewriteCond /file/path/to/your/textfiles/%1 -f
  21. RewriteRule ^(.+)/raw$ textfiles.php?f=$1&m=raw [QSA,L]
  22. # Send requests for files that exist to textfiles.php.
  23. RewriteCond %{REQUEST_URI} ^\/textfiles\/(.+)$
  24. RewriteCond /file/path/to/your/textfiles/%1 -f
  25. RewriteRule ^(.+)$ textfiles.php?f=$1 [QSA,L]