File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1562,7 +1562,26 @@ To run the functional tests locally you may run the following commands:
1562
1562
This runs the functional tests from the "tests" directory. It uses the database dumps (fixtures) and
1563
1563
database configuration (config) from the corresponding subdirectories.
1564
1564
1565
- ## Nginx config example
1565
+ ## Pretty URL
1566
+
1567
+ You may "rewrite" the URL to remove the "api.php" from the URL.
1568
+
1569
+ ### Apache config example
1570
+
1571
+ Enable mod_rewrite and add the following to your ".htaccess" file:
1572
+
1573
+ ```
1574
+ RewriteEngine On
1575
+ RewriteCond %{REQUEST_FILENAME} !-d
1576
+ RewriteCond %{REQUEST_FILENAME} !-f
1577
+ RewriteRule ^(.*)$ api.php/$1 [L,QSA]
1578
+ ```
1579
+
1580
+ The ".htaccess" file needs to go in the same folder as "api.php".
1581
+
1582
+ ### Nginx config example
1583
+
1584
+ Use the following config to serve the API under Nginx and PHP-FPM:
1566
1585
1567
1586
```
1568
1587
server {
You can’t perform that action at this time.
0 commit comments