A small Slim application for returning a list of pages in a MediaWiki category, ordered by Dale-Chall readability scores.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1020 B

  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3. # Some hosts may require you to use the `RewriteBase` directive.
  4. # Determine the RewriteBase automatically and set it as environment variable.
  5. # If you are using Apache aliases to do mass virtual hosting or installed the
  6. # project in a subdirectory, the base path will be prepended to allow proper
  7. # resolution of the index.php file and to redirect to the correct URI. It will
  8. # work in environments without path prefix as well, providing a safe, one-size
  9. # fits all solution. But as you do not need it in this case, you can comment
  10. # the following 2 lines to eliminate the overhead.
  11. RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
  12. RewriteRule ^(.*) - [E=BASE:%1]
  13. # If the above doesn't work you might need to set the `RewriteBase` directive manually, it should be the
  14. # absolute physical path to the directory that contains this htaccess file.
  15. # RewriteBase /
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteRule ^ index.php [QSA,L]
  18. </IfModule>