# Htaccess and index

**URL:** <https://forum.infinityfree.com/t/htaccess-and-index/87759>\
**Category:** Hosting Support\
**Created:** [December 21, 2023, 10:37pm UTC](https://forum.infinityfree.com/t/htaccess-and-index/87759 "2023-12-21T22:37:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [December 22, 2023, 11:43pm UTC](https://forum.infinityfree.com/t/htaccess-and-index/87759/5 "2023-12-22T23:43:39Z")

</div>

Have you done this?

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352/1):
>
> 1. Login to your control panel.
> 2. Go to Alter PHP Config.
> 3. Select the domain name you are trying to debug and click Alter PHP Directives.
> 4. Set “Display Errors” to “On” and click the Alter PHP Directives to save.

And this?

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352/1):
>
> For example, WordPress has a setting `WP_DEBUG` which can be used to show the actual error message. You can learn more about that option in the WordPress knowledge base: [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)

There’s no skill level required, the instructions are written so that you don’t have to familiarize yourself with the code of the software you’re running to be able to debug the issue.  
More specifically, in WordPress, as the linked article mentions, you should go to the file manager and your website’s `htdocs` directory, find `wp-config.php`, and insert the following line in it:

```php
// This enables debugging.
define( 'WP_DEBUG', true );

```

Making sure that this line has been inserted **BEFORE** this line (so not below it):

```php
/* That's all, stop editing! Happy blogging. */

```

---

_[View the full topic](https://forum.infinityfree.com/t/htaccess-and-index/87759)._
