diff --git a/.gitignore b/.gitignore index c30629d..0425c84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ admin/*_db_config.php -.htaccess favicon.ico diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..bcfd75c --- /dev/null +++ b/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine on + +RewriteRule ^/?user/([a-zA-Z0-9\-\_]+)$ /user/user.php?username=$1 [L,NC] + +RewriteRule ^/?tournament/([0-9]+)$ /tournament/tourney.php?tourneyID=$1 [L,NC] diff --git a/admin/user_management/user_form.php b/admin/user_management/user_form.php index e15ec23..8a651df 100644 --- a/admin/user_management/user_form.php +++ b/admin/user_management/user_form.php @@ -59,7 +59,7 @@ try { // Try opening the SQL database connection