Welcome Guest, Not a member yet? Register   Sign In
htaccess or ci problem on sub domain ?
#1

[eluser]hardik[/eluser]
hi friends,

i am having problem configuring codeigniter on one sub domain of my site. here is the details.

e.x http://xyz.abc.com/ is the domain where i have installed codeigniter. it is installed
successfully. after that i have created another controller blog

http://xyz.abc.com/index.php/blog
which is also accessible at this point.

now problem is i want to remove index.php from url

so first of all i have set configuration in config.php like this

Code:
$config['base_url']    = "http://xyz.abc.com/";
$config['index_page'] = "";

and also set htaccess by following code

Code:
Options FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine on    
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

but when i type following

http://xyz.abc.com/blog

i still get the welcome controller.

anyone can help me with this ?


Messages In This Thread
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 07:20 AM
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 07:37 AM
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 07:42 AM
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 07:54 AM
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 08:17 AM
htaccess or ci problem on sub domain ? - by El Forum - 01-21-2010, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB