<p>Ok so on this site: </p>

<p>1) I forgot that I'd moved the templates folder outside the craft folder for easy access with this in the index.php </p>

<pre><code>define('CRAFT_PLUGINS_PATH',realpath(dirname(__FILE__)./../plugins").'/');
</code></pre>

<p>2) Making sure the assets sources url are changed is essential to get the site working.</p>

CC BY-SA 3.0
2015-06-27T06:35:11.543Z
2015-06-27T06:41:40.023Z
2015-06-27T06:41:40.023Z
j00lz
<p>I've just moved a site from a subdomain to the root. </p>

<p>So far I've updated the index.php file and also the settings in the control panel</p>

<p>System->General->SiteUrl </p>

<p>to reflect the new path of the craft directory and index.php relationship.</p>

<p>I can access the admin backend but the actual site gives the craft styled "Page not found."</p>

<subdomain>
What needs updating when moving site from subdomain to root?
# What needs updating when moving site from subdomain to root?

(Asked by: username_0 on 2015-06-27)

I've just moved a site from a subdomain to the root.

So far I've updated the index.php file and also the settings in the control panel

System->General->SiteUrl

to reflect the new path of the craft directory and index.php relationship.

I can access the admin backend but the actual site gives the craft styled "Page not found."

**Tags:** subdomain

---

## 1 answers

### Answer by username_0 on 2015-06-27. Score: 2

Ok so on this site: 
1) I forgot that I'd moved the templates folder outside the craft folder for easy access with this in the index.php 
define('CRAFT_PLUGINS_PATH',realpath(dirname(__FILE__)./../plugins").'/');

2) Making sure the assets sources url are changed is essential to get the site working.


---

