I just created a website in CodeIgniter. And it is working fine on localhost {for eg: localhost/project_name/controller_name} but after uploading it to the server{for eg: www.domain_name.com/project_name/controller_name} it is showing ERROR 404.
what I do is simply make a zip file of the project and then extract it on the server.Please guide me if I am doing it in wrong way.
Possible you using development on windows, where you specify the controller in lower characters, now on web server is linux which is case sensitive, you might need to rename your controller, and make its first letter capital
Make sure you have changed the base url according to your domain and database related configuration (database name, user name and password) also.
Related
I have been doing some local hosting using MAMP, and accessing my database through php files stored on my local host. My testing is done and I've moved my php files to a godaddy server. I'm trying to change my c# code to *run the php files at their new location but I keep getting a "File Not Found" error. the domain of the site is assassintag.com, and I stored the php files in the public_html folder.
In my code I've tried accessing using the links:
www.assassintag.com/phpfilename.php
http://assassintag.com/phpfilename.php
http://www.assassintag.com/phpfilename.php
none of these work. I'm not new to coding, but I'm very new to hosting php files on a server. Any help and pointers would be wonderful. Thanks
The problem was simple. Using MAMP, The URLS I submitted were case insensitive, so I used all lowercase. Now that the files are hosted online, the file names are now case sensitive. After I added camel casing to my URLs in my code, everything worked fine.
My local installation of a Typo3 Page worked perfectly fine on a Xampp Server but when I tried moving it to my webserver I get the error
The Fluid template files [Path to my layout.html] could not be loaded.
More information regarding this error might be available online.
I transferred the files from Htdocs with FTP and the database with phpmyadmin import/export.
What could cause this error?
In this generality there are multiple reasons possible:
Can the apache user access the files? (the FTP user mostly is different than the apache user and the correct file- und folder-permissions can be lost easily)
Have you the same filenames and pathes?
don't use the windows folder separator \ on unix-servers.
is your local file systems case insensitive? Linux is case sensitive and /test/is another folder than /Test/.
Did you set your correct domain record on the pagge tree root?
If not please set the domain record to the actual url you try to reach the page.
I cant access my images when I run on my live server but it work on local. I have doubled check and my url is right but the images still doesnt show up
mysite.com/public/vendor/Beautymail/assets/images/sunny/logo.png
%PUBLIC%/vendor/Beautymail/assets/images/sunny/logo.png
I only get a: Sorry, the page you are looking for could not be found.
*I am using Laravel Forge with DO
Maybe it because Windows isn't case sensitivity but Linux is.
Try to change all the directories and files names to lowercase letters and also in your url, so that your new url will be: (notice that all letters are lowercase):
mysite.com/vendor/beautymail/assets/images/sunny/logo.png
I have designed a website and uploaded it successfully on a server. The HTML pages links is no more working.
The website is www.rentacar-mauritius.com the "Home" works well but the other ones do not like "Tours, Rent a Car" and so on. By viewing my source on the browser, you'll see my code.
Live server is case sensitive (Linux Hosting)
I change your URL to http://www.rentacar-mauritius.com/Rentacar.html and its working
Check your file name(s), Spellings
so your URL(s)
http://www.rentacar-mauritius.com/rentacar.html
http://www.rentacar-mauritius.com/tours.html
http://www.rentacar-mauritius.com/gallery.html
http://www.rentacar-mauritius.com/about.html
http://www.rentacar-mauritius.com/contact.html
should be
http://www.rentacar-mauritius.com/Rentacar.html
http://www.rentacar-mauritius.com/Tours.html
http://www.rentacar-mauritius.com/Gallery.html
http://www.rentacar-mauritius.com/About.html
http://www.rentacar-mauritius.com/Contact.html
Like wise check your whole site
Rent A Car
Filenames are case-sensitive for Linux environment. If your hosting server is running Linux, make sure that your file names match the href values exactly (including the case).
I have written a controller with name CMS (capital letter). When I call the link http://localhost/CI/testing/admin/cms/insert, It has no problem. Its working fine in localhost.
After uploading that page to server and when I execute the statement, http://dev.test.in/testing/admin/cms/insert, it doesn't display the page. But when I change the url to http://dev.test.in/testing/admin/CMS/insert, its in a working condition.
In order to solve this either I will have to change the controller name to cms(small letter) or change all the anchor url to CMS. Is there any other solution to solve this. Like writing htaccess file?
The problem exist coz file name differs on Linux and Windows
MyFile & myfile can not exist in a same path in Windows, but can on a Linux