# How Change domain works?

**How Change domain works?**

***

Answer:

1. If you want to switch/change your domain first backup your database and codes.
2. Enter your new domain/URL where you have to transfer your script
3. Enter your purchase code in the purchase code field
4. Press Submit button

**When your press the submit button this domain/URL will not valid/available.**

When the request submitted successfully Just transfer the script and database in your new server

IF you change your hosting and domain both then you have to configure the **database.php** file check documentation for details

How to config database.php file. <mark style="color:purple;">(if your database configuration same as the old server then no need to config database.php file)</mark>

database.php file location: **`application/config/database.php`**

```
'hostname' => 'localhost',
'username' => 'your new database username',
'password' => 'your new database password',
'database' => 'your new database name',
```

Just edit database.php file and set the values

**\*If you get any issues please mail at our support**


---

# 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://phplime-envato.gitbook.io/qrexorder/faqs/how-change-domain-works.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.
