Welcome Guest, Not a member yet? Register   Sign In
CI with and without rewrite redirects to ISP 404
#1

[eluser]mikeyhell[/eluser]
This isn't a CI issue as I've tested on 2 servers with no problems, but I've pulled my app into a sub directory on my clients server. I've tried both without rewrite i.e.

http://kerrcountysurveryor.com/time/index.php/sign_in

and also with rewrite using a standard .htaccess w/ the correct subdir /time :

http://kerrcountysurveryor.com/time/sign_in

Both redirect to the users ISP not found page

I'm unable to contact their support right now and my client only has basic ssh access which doesn't include the logs or any server config files.

Is this a server config error, I've never had a problem placing a CI app in a subdir like this.

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

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

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

config.php
Code:
&lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|    http://example.com/
|
*/
$config['base_url']    = "http://www.kerrcountysurveyors.com/time/";

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "";




Theme © iAndrew 2016 - Forum software by © MyBB