# My redirect/routing via .htaccess not working

**URL:** <https://forum.infinityfree.com/t/my-redirect-routing-via-htaccess-not-working/79459>\
**Category:** Hosting Support\
**Created:** [July 22, 2023, 2:41pm UTC](https://forum.infinityfree.com/t/my-redirect-routing-via-htaccess-not-working/79459 "2023-07-22T14:41:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 23, 2023, 10:24am UTC](https://forum.infinityfree.com/t/my-redirect-routing-via-htaccess-not-working/79459/2 "2023-07-23T10:24:44Z")

</div>

> [@anon57908287](#):
>
> HTTP ERROR 500

This is usually caused by a PHP code crash, not a .htaccess error. With .htaccess errors, you’re usually redirected to a separate error page.

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

But it should be easy to verify though. Does the HTTP ERROR 500 if you remove/rename the .htaccess file so the rules are not applied?

---

_[View the full topic](https://forum.infinityfree.com/t/my-redirect-routing-via-htaccess-not-working/79459)._
