Welcome Guest, Not a member yet? Register   Sign In
Codeigniter is not working on godaddy subdomain
#1

Please help me to upload codeigniter project on subdomain , my project is not working on subdomain, hosted on godaddy servers. I am getting errors. I am sure, you will help me. Please review my settings below:

config.php
$config['base_url']    = "
http://www.mydomain.com/mysubdomain/";
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'REQUEST_URI';

routes.php
$route['default_controller'] = 'login';

htaccess within application foler
Deny from all

htaccess within root of subdomain
<IfModule mod_rewrite.c>
RewriteEngine On

# Send would-be 404 requests to Craft
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
RewriteRule (.+) index.php?p=$1 [QSA,L]
Reply
#2

(This post was last modified: 03-06-2016, 03:48 PM by suhindra.)

you should set your base url like
PHP Code:
$config['base_url'   "http://mysubdomain.mydomain.com/"
Reply
#3

(This post was last modified: 03-06-2016, 10:53 PM by Php.)

Whats the error?
Be clear first.
Are you using sub domain or sub-folder?
Web Developer
Reply




Theme © iAndrew 2016 - Forum software by © MyBB