Welcome Guest, Not a member yet? Register   Sign In
codeigniter configuration for vps server
#1

(This post was last modified: 02-21-2015, 08:18 AM by vidhyaprakash85.)

i have installed and configured the codeigniter in the local machine with the .htaccess file as like this

PHP Code:
<IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase 
/btcxchnage/

       # Directs all EE web requests through the site index file
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond 
%{REQUEST_FILENAME} !-d
       RewriteRule 
^(.*)$ /btcexchnage/index.php/$[L]
</
IfModule
in wamp server localhost i have folder in the btcxchnage. in local host it is working fine http://localhost/btcxchnage means default controller login in loading fine.

I purchased the vps server 192.3.104.172 and in that i copied all the files as i am having in the local machine and it is not working properly 192.3.104.172 instead i need to use 192.3.104.172/index.php/login now it is working fine in this url.

please help me what i need to modify

and also in the config.php i changed the value

$config['base_url'] = 'http://192.3.104.172/';
Reply
#2

Is the folder "btcxchnage" your root folder online? If not you have to remove it

PHP Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase 
/

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ index.php/$[L]
#RewriteRule ^(.*)$ index.php?/$1 [L] <--- i would write it like that
</IfModule

And your setting for $config['base_url'] should then be emtpy.

Reply
#3

sir i have attached the root file structure sir. please check and tell your suggestion sir.
Reply
#4

I cant find the .htaccess in you're root .. it should be there.

Reply
#5

(This post was last modified: 02-21-2015, 10:01 PM by vidhyaprakash85.)

i have added the file http://clip2net.com/s/3cV5v5G see this image sir but still it not working sir

contents of .htaccess : http://c2n.me/3cV5zNJ
Reply
#6

Sir now it working fine.. now i am getting new error file not found please help me.. i cleared cookie and history now fine.
Reply
#7

Did you try using the RewriteRule that you have commented out, the one with the ? in it instead of the one above it?
Reply
#8

CroNix,

No i have the put this as .htaccess. I am new to this configuration settings so please help me sir.

http://c2n.me/3cZZagT please see this image sir.
Reply
#9

I can't copy paste from an image...

Add a ? right after index.php, so it looks like index.php?/$1 in the RewriteRule that DOESN'T start with a # at the beginning of the line. So it looks like the line right under it.
Reply
#10

Rufnex

have posted in this.. Please tell from that sir or add entire code sir please Sad
Reply




Theme © iAndrew 2016 - Forum software by © MyBB