# Domain Pointing

**URL:** <https://forum.infinityfree.com/t/domain-pointing/72334>\
**Category:** Hosting Support\
**Created:** [February 15, 2023, 1:49pm UTC](https://forum.infinityfree.com/t/domain-pointing/72334 "2023-02-15T13:49:12Z")\
**Posts on this page:** 1\
**Showing post:** 59

<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:** [February 21, 2023, 7:24pm UTC](https://forum.infinityfree.com/t/domain-pointing/72334/59 "2023-02-21T19:24:08Z")

</div>

> [@anon1031448](#):
>
> I can’t activate the error page as it is in the article, look at it, it doesn’t give the option, I did everything that is there but it didn’t work, help me

What’s the issue?

On the page in the screenshot, you select the domain for which you want to enable errors, then click Alter PHP Directives. Then you’ll be brought to a page where you can enable errors for that particular site.

* * *

I did this and checked the error.

The issue is caused by the fact that the index.php file of your site does not contain valid PHP code. Instead, you just replaced the contents with some WordPress data export file.

But if you want to import an existing website, this is not the way to do it. As you can actually read in the file itself:

```auto
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!-- on the site. For each author, you may choose to map to an -->
<!-- existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!-- contained in this file into your site. -->

```

But before you can do that, you need to restore the original WordPress code. You can do that by replacing the current index.php file of your site with one from a fresh copy of WordPress. The process is pretty similar as we’ve described here, except now it’s very likely to only be a single corrupted file:

> [@How to fix a corrupted WordPress installation](https://forum.infinityfree.com/t/how-to-fix-a-corrupted-wordpress-installation/49359):
>
> WordPress frequently releases updates, which you can install through WordPress’ admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website. Fortunately, you can still fix your website without any data loss, and this article tells you how to do that. Download a fresh copy of WordPress First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website…

After that, you should be able to login and import the data file according to the instructions contained within.

But that’s not the recommended way to migrate a website. This is our recommended method:

> [@How to migrate your website to InfinityFree](https://forum.infinityfree.com/t/how-to-migrate-your-website-to-infinityfree/49315):
>
> If your website doesn’t use MySQL databases, moving your site is very easy. Simply upload all your files to the ‘htdocs’ folder on your hosting account with FTP or a file manager. If you have a PHP based website, check if it has any configuration files where a domain name or file path needs to be set. Update these values as required. If your website is using MySQL databases, you need to move the database contents as well and update the configuration of your website to use the database: Backup…

* * *

As a tip in general: please carefully read instructions. If you get stuck, please consider asking for help instead of making your own assumptions on what to do. And always tell exactly what you are trying to do and what you did, and where you are stuck.

This applied both to information provided by us and by WordPress. All the issues here could have been avoided and fixed by correctly following instructions instead of making assumptions about how things should work (e.g. replacing WordPress core files with backup data or looking for an error message without enabling error messages).

---

_[View the full topic](https://forum.infinityfree.com/t/domain-pointing/72334)._
