Search code examples
phpcodeigniterpleskbase-url

Codeigniter base_url in plesk


Recently I uploaded a website which created using codeigniter framework into plesk. Inside the c-panal I changed the document root into httpdocs/public_html/cliftonhotel.ae, and I uploaded the files using FTP into the same. I changed the base_url into

$config['base_url'] = 'http://cliftonhotel.ae/';

The problem is if I enter the web address it loads fine(The home page), but the other menus are not working, they shows a 404 page not found error.

[http://cliftonhotel.ae/][1] this is the site. What is the solution, thankyou.


Solution

  • It seems that the links you have created are missing index.php

    For example: http://cliftonhotel.ae/index.php/home/about works

    but http://cliftonhotel.ae/home/about does not.

    So you have to either change the links or edit your .htaccess for url rewriting