move codeigniter project from localhost to live server - codeigniter

Trying to move the codeigniter project from laptop server to live server. Uploaded the files in Public_HTML and I modified the config.php, base_url, .htaccess as needed and also upgrade the Database... when i run project default controller called correctly when other controller can not call this message show 404 Page Not Found. config.php and .htaccess files update as correct information. This same project run successfully on Local or Desktop server but produce Error on live server 404 Page Not Found home controller (default controller) call but other controller not call.

What is your server? And whats your configuration file?
Make sure you enable mod rewite if you are using apache
a2enmod rewrite

Have you removed index.php from url? Try to access another controller like this.
<domain>/index.php/<controllername>

Related

Laravel 5.4 change base address

I'm working on a Laravel 5.4 project and it's sandbox environment is this:
http://anything.com/sandbox/abc/www/public
I was asked to change it to:
http://anything.com/sandbox/xyz/www/public
After I change the folder via FTP and try to access the new URL I get this error message:
The requested URL /sandbox/abc/www/public/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I tried replacing the base url at the app/config.php and still didn't work.
The website is hosted in a cPanel server.
Any tips on what I should be trying? I just need to change the folder name. That's all.
Thanks for any help!
Answering my question: the problem was that there was a redirection in an .htaccess.

error when accessing laravel project in ubuntu server 16.04

I have problem when i try to access my webapp in my ubuntu server 16.04..
when i try to type my server ip with the laravel folder it showing this message,
The requested URL /laravel_spk-matautama/home was not found on this server.
but then i try to put index.php on my link like this url
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/index.php/home
it works, but the problem is it wont embed the masterpage layout.
Do like this, to access your home page
http://xxx.xxx.xxx.xxx/laravel_spk-matautama/public

URL rewrites do not work after moving Magento installation to new server

After duplicating our web store onto a new server, copying the database over and changing the base url/safe base url in the db, all we get from the copied installation is the front page. That is, no custom url redirects work (for products, the admin panel, etc.), they all result in a 404 (and not the magento 404, the server default). Do you have any ideas what I could check out? Could there be an issue with one of the libraries included in magento?
I tried reindexing with /shell/indexer.php - which executed successfully but didn't fix the redirects.
Any ideas? Note I cannot access the admin panel via /admin because of this issue.
Edit: solution was .htaccess file missing in root directory
I added the sample htaccess file from the magento installation (I uploaded a copy in case someone finds it useful: http://sdrv.ms/13mw8Ok), and mod_rewrite was activated the next time I visited the site.
Make sure your vhosts file is setup correctly to allow mod_rewrite
Make sure your .htaccess file is setup correctly
How to enable mod_rewrite for Apache 2.2
You can access your admin through /index.php/admin in the meanwhile.

How to set up Dreamweaver to use CodeIgniter?

I am using dreamweaver cs5 and xampp. I created a folder name CI in htdoc, where all my codeigniter files and folders are , i.e application, system , user_guide, license.txt, index.php and .htaccess(which is blank).
My dreamweaver set up is :
Site
Site Name: codeIgniter Local Site Folder: C:\xampp\htdocs\CI
Servers
ServerName: codeIgniter Connect using: Local/Network
Server Folder: c:\xampp\htdocs\CI\ Web URL: http://localhost/site/
and i unticked remote server and ticked testing server.
My codeigniter set up is:
$config['base_url'] = 'http://localhost/site/';
$autoload['libraries'] = array('database');
and created site.php in the controller.
Error i am getting in dreamweaver is :
Dynamically-related files could not be resolved because the site defination is not
correct for this server.Retry|Setup.
Also when i am trying to view it as Live View or in browser it is taking me to
localhost/site/application/controllers/site.php , which saying object not found
But everything is fine using notepad++ though and i can see nothing is wrong in setting up codeigniter
Your weburl must match your site root, change your weburl and $config['base_url'] to http://localhost/CI/ and also check that your server model is set to php/mysql.

index.php not found in url of cloned Magento Site on Development server?

I have cloned a live Magento 1.5.0.0 site to my development server (windows wamp)
the development server does not have an .htaccess file in the roor directory but i have copied one into my root directory from another magento install?
Every thing seems to be configure ok the database is connected ok, I have set up alias which loads the index.php page ok but the url's do not work , so if i click on the contact us page the server error is:
The requested URL /vhosts/petextra/magento/index.php was not found on this server.
The adress bar url for the same is: http://127.0.0.1/petextra/contact-us/.
If I manualy type in the index.php in the address bar
http://127.0.0.1/petextra/index.php/contact-us/`
then the page loads ok.
Some how the url is not including the index.php?
Has anybody got any ideas why this is happening?
ensure that:
mod_rewrite is enabled on your dev site
.htaccess is in place
.htaccess file > RewriteEngine off
or turn off url rewriting from magento admin configuration>web> Search Engines Optimization > Use Web Server Rewrites > No
The same thing happened to me, The problem was that i enabled the search engines Optimization but later switched to NO. is working fine after that

Resources