Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Codeigniter in codeigniter
#1

(This post was last modified: 01-07-2015, 12:44 AM by Levian.)

Hi,

Well, new here n just diving into codeigniter for some months
I wonder if I can use codeigniter in both domain and subdomain...there wasn't any problem when it's on subdomains as they're separated...but as domain n subdomain...can it be done ?


Thanks n regards,
Reply
#2

(This post was last modified: 01-06-2015, 01:12 AM by wolfgang1983.)

(01-05-2015, 09:06 PM)Levian Wrote: Hi,

Well, new here n just diving into codeigniter for some months
I wonder if I can use codeigniter in both domain and subdomain...there wasn't any problem when it's on subdomains as they're separated...but as domain n subdomain...can it be done ?


Thanks n regards,

You will have to set in in htaccess some how. Try Place this htaccess in main directory or if not both.


PHP Code:
RewriteEngine on

RewriteCond 
%{REQUEST_FILENAME} !-# this means if the requested file name doesnt exist 
RewriteCond %{REQUEST_FILENAME} !-# this means if the requested directory doesnt exist 
RewriteRule ^(.*)$ index.php [L
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB