Hello, I have just moved a website with concrete from one server to another and pointed the domain, however only the homepage is showing and it is showing a 404 error for all the other pages.
I had updated the database details in the application/config/database.php file but its not working.
Can anyone give me some pointers on this?
I am also unable to log in to admin as i get the same error
HI @mesuva Apparently the .htaccess files are there. I have been advised to add the folowing code to them. I did that, cleared the cache and it made no difference.
No, that wouldn’t go in the index.php file, it’s something that is put in place in the nginx configuration.
But from what you’ve said about the server, it’s hard for me to tell if it’s needs the .htaccess file, or this nginx instruction.
Best to work with the server guys. They should be familiar with a common rewrite like this and how their server needs to handle it. If not, change hosts!
Thanks @mesuva
I have pased this to my server support to resolve as it seems a deeper problem than i can sort. Thanks for your help and i will update you once done.
Simon
Fixed many thanks. Tech server support added the original code into .htaccess which i wasnt able to find. and its worked straght away.
Thanks for your time today, I really appreciate that.
Simon
The most likely reason why you could not see the htaccess file is because when in the cPanel File Manager, in the top right corner you should see a ‘Settings’ tab, click that and then tick the ‘Show Hidden Files (dotfiles)’
Screenshot is attached.