diff --git a/Simple-URLs.md b/Simple-URLs.md index 0bdc0ea..791a6eb 100644 --- a/Simple-URLs.md +++ b/Simple-URLs.md @@ -14,8 +14,6 @@ Replace each instance of `/bans` with the correct directory name, if applicable. ## Apache -Note: Untested. This probably doesn't work. - Create a file named `.htaccess` in the same folder as `index.php` with the following contents: ``` RewriteEngine On @@ -23,7 +21,8 @@ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^inc/(.*) - [NC,L] -RewriteRule ^(.*) "index.php?$1" [QSA,L] +RewriteRule ^index.php - [NC,L] +RewriteRule "" "index.php?%{REQUEST_URI}&%{QUERY_STRING}" [L] ``` Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected. \ No newline at end of file