diff --git a/Simple-URLs.md b/Simple-URLs.md index 230e4f3..71402ff 100644 --- a/Simple-URLs.md +++ b/Simple-URLs.md @@ -11,4 +11,18 @@ In nginx.conf: ## Apache -TODO \ No newline at end of file +Note: Untested + +1) Enable `simple_urls` in `settings.php` + +2) Create a file named `.htaccess` in the same folder as `index.php` + +3) Paste this into `.htaccess`: +``` +Options -MultiViews +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^ index.php [QSA,L] +``` + +4) Visit `/index/` (e.g. "example.com/punishments/index/") and check if it works as expected. \ No newline at end of file