You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
> Simple, direct and efficient router created with just PHP and .htaccess.
3
3
4
4
## How
5
-
All requests are redirected to `index.php` with the help of the `.htaccess`.
6
-
The `model/moder.router.php` will then render the current view based on the first value of an array created from
7
-
`$_SERVER["QUERY_STRING"]` and it will render the current viewif it is available inside the `view\*.php` folder.
5
+
All requests are redirected to `index.php` with the help of the `.htaccess`.<br>
6
+
The `model/moder.router.php` will then create an array based on `$_SERVER["QUERY_STRING"]`.<br>
7
+
It will render the current view(based on the first value of the array) and if it is not available inside the `view\*.php` folder, `view\404.php` will be rendered instead.
8
8
9
9
## Troubleshooting
10
-
Should something went wrong, please check if the included `.htaccess` file actually exists and `mod_rewrite` is available.
10
+
Should something went wrong, please check if the included `.htaccess` file actually exists and `mod_rewrite` is available.<br>
11
11
The `.htaccess` should also be updated accordingly if you are not using `apache` and using other webservers such as `nginx`.
0 commit comments