Skip to content

Commit 6b793ad

Browse files
committed
Merge branch 'main' of https://github.com/MrF0o/php-router
2 parents 4e6681c + 07041f5 commit 6b793ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ It is inspired by the popular Laravel framework, and aims to provide a similar e
66
# Getting Started
77

88
- [Installation](#installation)
9+
- [Setup](#setup)
910
- [The Router class](#the-router-class)
1011
- [Route parameters](#route-parameters)
1112
- [Regular Expression Constraints](#regular-expression-constraints)
@@ -51,9 +52,9 @@ php -S localhost:8888 index.php
5152
This command will run your app on port 8888. And if everything went correctly, visiting http://localhost:8888 on your browser should show the text 'Hello World'.
5253

5354
#### Method 2: Reverse proxy
54-
Here you can find a .htaccess file example that you can use with the rewrite rules needed for this router to run correctly. You can use the same example code from the previous method and make sure to place the file somewhere under the document root Apache expects (Generally htdocs).
55+
Here you can find a .htaccess file example that you can use with the rewrite rules needed for this router to run correctly. You can use the same example code from the previous method and make sure to place the file somewhere under the document root that Apache expects (Generally htdocs).
5556

56-
> Apache by default uses index.php as the main file so it will serve it by default. but if you want to use this router globally withing you project you want all traffic to point to the index.php even tho the user tried to access a different folder withing you project.
57+
> Apache by default uses index.php as the main file so it will serve it by default. but if you want to use this router globally within you project you want all traffic to point to the index.php even tho the user tried to access a different folder withing you project.
5758
5859
```apacheconf
5960
<IfModule mod_rewrite.c>

0 commit comments

Comments
 (0)