From e6878fd9ec6df0178dc430eafa4a6284823b957d Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sun, 1 Jul 2018 13:37:30 -0600 Subject: [PATCH] Make public index PHP so backend transformations are possible --- public/.htaccess | 6 +++--- public/index.html | 34 ------------------------------- public/index.php | 52 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 37 deletions(-) delete mode 100644 public/index.html create mode 100644 public/index.php diff --git a/public/.htaccess b/public/.htaccess index 18232f8..08915ff 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -2,11 +2,11 @@ # # RewriteRule ^view/([0-9]+)/([0-9]+)/?$ index.php?dict=$1&word=$2 [NC,L] # Handle word ids. # -# RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?dict=$1&word=$2 [NC,L] # Handle word ids. +# RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?dict=$1&word=$2 [NC,L] # Handle word ids. # -# RewriteRule ^view/([0-9]+)/?$ index.php?dict=$1 [NC,L] # Handle dictionary ids. +# RewriteRule ^view/([0-9]+)/?$ index.php?dict=$1 [NC,L] # Handle dictionary ids. # -# RewriteRule ^([0-9]+)/?$ index.php?dict=$1 [NC,L] # Handle dictionary ids. +# RewriteRule ^([0-9]+)/?$ index.php?dict=$1 [NC,L] # Handle dictionary ids. # # RewriteRule ^issues/?$ https://gitlab.com/Alamantus/Lexiconga/issues [R=301,L] # Shorten issues url. # diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 0049524..0000000 --- a/public/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Lexiconga Dictionary Builder - - - - - - - - - - -
- - - \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..549196c --- /dev/null +++ b/public/index.php @@ -0,0 +1,52 @@ + + + + + + + <?php echo $page_title; ?> + + + + + + + + + + +
+ + + \ No newline at end of file