Page 1 of 1

[solved] Changing Server, 404 Problems...

Posted: Mon May 23, 2011 10:08 am
by khafka
Hello there,

I had a little look using the search and I couldn't see anyone else with this problem and since this is my first time using CMSMS I think I might have overlooked something silly.

I installed and built a website for a client on a testing server I use, they were happy enough with it but now want it migrated onto their own hosting package and domain.

I followed the steps in the How To section but I created a new folder within their hosting account just to test it before over-writing their current site so instead of going to domain.co.uk it is domain.co.uk/newsitetest

I have backed up my database, imported it into their new account and downloaded the files from my testing server and uploaded them to their account and changed the directories in the config.php file, whenever I try to view the site I keep getting hit with a 404 error message.

Any idea why? I suspect it might be something in the config.php I have missed or not done properly...

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 10:44 am
by M@rtijn
In your .htaccess is a line
#Sub-dir e.g: /cmsms
RewriteBase /
Did you also change that? If your new website is a subfolder, it should say
RewriteBase /newsitetest

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 10:57 am
by khafka
I just changed that and it is still throwing up this error.

"The requested URL /newsitetest was not found on this server."

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 11:10 am
by Jos
and did you clear the cache?

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 11:49 am
by khafka
Yup, I followed the tutorial step by step.

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 12:37 pm
by khafka
Okay, I have it working now.

It appears that it didn't seem to like the directory that I created outside of the initial /public_html, so I moved the "newsitetest" folder into the public_html one and it seems to be fine.

So Mods please feel free to delete this post.

Re: Changing Server, 404 Problems...

Posted: Mon May 23, 2011 4:22 pm
by M@rtijn
Good you were able to solve it!

I guess nothing will work outside a public_html folder ;)
So Mods please feel free to delete this post.
We actually only delete posts when there are against the forum rules. In this case maybe in the future somebody will make the same (let's call it a) mistake.
I've added the tag [solved] to your first post, so people now know they don't have to look into it and other people can use this 'solution'.