Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Koda on February 20, 2019, 03:51:23 PM

Title: Changing hosts and moving from root to /public_html, only main page loads
Post by: Koda on February 20, 2019, 03:51:23 PM
Hello, I recently changed hosts, and it appears I performed the transfer successfully, especially after running the repair_settings tool, however if I click any links from the main page I am given a not found error.  I believe this is because during the transfer, I had to bump the files up from the www.example.com [nofollow] folder to the www.example.com/public_html [nofollow] folder.  So there appears to be some issue with the links and possibly database.  I kept the url and database information the same, and only changed what was recommended in the repair settings tool.  I am sure this is an easy fix, but I must be overlooking something.

Thank you.
Title: Re: Changing hosts and moving from root to /public_html, only main page loads
Post by: Kindred on February 20, 2019, 04:14:13 PM
normally public_html *IS* the site root...   so, by changing your urls to that, you are likely breaking things.


If you changed hosts, then your database information also probably changed....

and do confirm... when you changed hosts, you moved a copy of all FILES **AND** a copy of all databases?
Title: Re: Changing hosts and moving from root to /public_html, only main page loads
Post by: @rjen on February 20, 2019, 04:45:06 PM
You are using Pretty URL's? Then that is for sure the cause of the issue: the root path in pretty urls must be updated. Check the pretty url support topic...
Title: Re: Changing hosts and moving from root to /public_html, only main page loads
Post by: Koda on February 20, 2019, 05:12:04 PM
Thanks, removing pretty_urls seemed to fix everything besides the avatars.  I followed these instructions:

https://www.smfhacks.com/index.php/topic,9619.0.html

I will try to reinstall pretty urls later, and I am thinking the reason the avatars are not loading is because of some mismatch with the settings or phpmyadmin.  If anyone has any input it would be appreciated.

uploading new avatars works so I suppose this can be marked as solved, thank you for the quick assistance SMF, this is why I love this program and community
Title: Re: Changing hosts and moving from root to /public_html, only main page loads
Post by: Illori on February 20, 2019, 05:31:44 PM
we can provide input if you provide a link so we can see the issue.