.htaccess 671 B

123456789101112131415161718192021222324252627282930
  1. LuaPackagePath "/var/www/sailor_framework/src/?.lua"
  2. <FilesMatch "\.lua$">
  3. AddHandler lua-script .lua
  4. </FilesMatch>
  5. DirectoryIndex index.lua
  6. RewriteEngine On
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8. #CATEGORY SORTING WITH PAGINATION
  9. RewriteRule ^([^/]+)/([0-9]+)/?$ /index.lua?r=main&c=$1&p=$2 [L]
  10. #INSIDE A POST
  11. RewriteRule ^([^/]+)/([^./]+)/?$ /index.lua?r=main/post&c=$1&t=$2 [L]
  12. #ABOUT PAGE
  13. RewriteRule ^about[/]?$ /index.lua?r=main/about [L]
  14. #ARCHIVE PAGE
  15. RewriteRule ^archive[/]?$ /index.lua?r=main/archive [L]
  16. #MAIN PAGE WITH PAGINATION
  17. RewriteRule ^([0-9]+)/?$ /index.lua?r=main&p=$1 [L]
  18. #CATEGORY SORTING
  19. RewriteRule ^([^./]+)/?$ /index.lua?r=main&c=$1 [L]