# Cannot get API to work

**URL:** <https://community.open-emr.org/t/cannot-get-api-to-work/13157>\
**Category:** Management and Administration\
**Created:** [November 17, 2019, 1:44pm UTC](https://community.open-emr.org/t/cannot-get-api-to-work/13157 "2019-11-17T13:44:16Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Nilesh\_Hake](https://community.open-emr.org/user_avatar/community.open-emr.org/nilesh_hake/32/13927_2.png) [@Nilesh\_Hake](https://community.open-emr.org/u/Nilesh_Hake)\
**Post date:** [February 20, 2020, 5:44am UTC](https://community.open-emr.org/t/cannot-get-api-to-work/13157/26 "2020-02-20T05:44:45Z")

</div>

Hi All,

Here is final solution for API issue, when your API is not working or showing HTTP 404 error you means your .htaccess is not working just go to apache config file check **AllowOverride** option and change the **AllowOverride None** to **AllowOverride All**.

Now try again API url you should receive the internal server error means the our .htaccess is working but we did not enabled the apache mod\_rewrite. use below command to enable mod\_rewrite **a2enmod rewrite** then restart the server.

Note: If you install the separate apache server then and then only you will get this issue but you taken apache2 from OpenEMR site it will not going issue you because they already made that changes into the apache2 server.

Thanks,  
Nilesh

---

_[View the full topic](https://community.open-emr.org/t/cannot-get-api-to-work/13157)._
