[solved] Changing Server, 404 Problems...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
khafka
New Member
New Member
Posts: 4
Joined: Mon May 23, 2011 10:01 am

[solved] Changing Server, 404 Problems...

Post 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...
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Changing Server, 404 Problems...

Post 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
Make your community a better place!
khafka
New Member
New Member
Posts: 4
Joined: Mon May 23, 2011 10:01 am

Re: Changing Server, 404 Problems...

Post by khafka »

I just changed that and it is still throwing up this error.

"The requested URL /newsitetest was not found on this server."
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Changing Server, 404 Problems...

Post by Jos »

and did you clear the cache?
khafka
New Member
New Member
Posts: 4
Joined: Mon May 23, 2011 10:01 am

Re: Changing Server, 404 Problems...

Post by khafka »

Yup, I followed the tutorial step by step.
khafka
New Member
New Member
Posts: 4
Joined: Mon May 23, 2011 10:01 am

Re: Changing Server, 404 Problems...

Post 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.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: Changing Server, 404 Problems...

Post 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'.
Make your community a better place!
Post Reply

Return to “CMSMS Core”