# Hosting

Hosting is the most essential part of getting your website online. The following text will outline and describe how our hosting service works.

{% hint style="warning" %}
Hosting is not automatically provided. If you wish to host your website with us, please contact us, or state this when starting your project.
{% endhint %}

### Hosting with MG WebDev Ltd.

When hosting your website with us, no action will be required at this stage. When hosting your website with us, you will pay a yearly price.&#x20;

{% hint style="danger" %}
**IMPORTANT**

Your yearly hosting will **not** be renewed automatically. You will be notified 30-days before the term expires. If you wish to renew your term you can do so by replying to that message.\
\&#xNAN;*We want to be transparent to our clients.*
{% endhint %}

To edit or make changes to your website you can contact us directly (no additional charges will be billed for minor changes). You will also be able to edit all source files dirctly through our third-party. Login credentials will be provided when choosing to host your site with us.&#x20;

**Additional services included with hosting**

<details>

<summary>Domain name</summary>

You will have to provide your own domain name.\
If explicitly agred upon, we can register your domain and provide you access to the setting, via the Cloudflare platform. These additional charges will be billed together with the hosting service.

</details>

<details>

<summary>Mailbox</summary>

When hosting your website with us, you will have the option create an email address. This is an address with your own domain name extension (e.g. <hello@mydomain.com>). The mailbox can be accessed through outlook.&#x20;

{% hint style="info" %}
One email is provided with every hosted project/site. If you wish additional emails, conact support.
{% endhint %}

</details>

### Self-hosted website

You have the option to host your website yourself.&#x20;

You can easily download all files in the management portal.&#x20;

There are several methods to host your website. These methods depend on your hosting provider. The following steps will provide an explanation on how you can upload your website to a server by means of FTP. We recommend Filezila (or DocEvent) for this operation.&#x20;

1. Get your FTP credentials from your hosting provider (if fully self-hosted you should know these)
2. Enter your credentials (host, username, password, and port)
3. Drag and drop all your project files into the server (with the exception of project-specific information, including admin-credentials, custom API details, training recordings, tailored guides, and access instructions).
4. Your website is now live on your server

{% hint style="info" %}
You might need to drop your files in the "htdocs" folder.

When accessing your website, and it's not available, check of the .html extension is added to the url.&#x20;
{% endhint %}

To remove the .html extension from URLs and make them clean, you need to configure your .htaccess file. This ensures users can access pages without explicitly typing the .html extension, while the server serves the correct file.

{% code title=".htaccess" %}

```apache
# Enable Rewrite Engine
RewriteEngine On

# Remove .html extension
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [L]

# Redirect .html to extensionless URL
# To externally redirect /dir/about.html to /dir/about
RewriteCond %{THE_REQUEST} \s/(.*)\.html [NC]
RewriteRule ^ %1 [R=301,L]
```

{% endcode %}

***

**Need more information?** \
**Contact support: <support@mgwebdev.eu>**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.mgwebdev.eu/documentation/getting-started/hosting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
