Skip to content

Commit 1a0412f

Browse files
authored
Added Symfony rewrite rules link
When installing API Platform via Symfony Flex and Composer on an Apache or Nginx server, the rewrite rules need to be enabled or you'll get a lot of 404 errors. I've added a line of information and the link to the official Symfony documentation with all the relevant information.
1 parent 4076f7c commit 1a0412f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ And start the built-in PHP server or the Symfony WebServerBundle:
151151
All JavaScript components are also [available as standalone libraries](https://github.com/api-platform?language=javascript)
152152
installable with NPM or Yarn.
153153

154-
**Note:** when installing API Platform this way, the API will be exposed as the `/api/` path. You need to open `http://localhost:8000/api/` to see the API documentation.
154+
**Note:** when installing API Platform this way, the API will be exposed as the `/api/` path. You need to open `http://localhost:8000/api/` to see the API documentation. If you are deploying API Platform directly on an Apache or Nginx webserver and getting a 404 error on opening this link, you will need to enable the [rewriting rules](https://symfony.com/doc/current/setup/web_server_configuration.html) for your specific webserver software.
155155

156156
## It's Ready!
157157

0 commit comments

Comments
 (0)