Welcome Guest, Not a member yet? Register   Sign In
Removing index.php using htaccess works on one server and doesn't work on others!
#8

[eluser]Matthew Potter[/eluser]
.htaccess file within the “website_admin” folder
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~sincity/website_admin/

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

    RewriteCond %{REQUEST_URI} ^application.*
    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>

[root_folder]/website_admin/application/config/config.php line 42:
Code:
$config['base_url'] = 'http://staging.sincitynightclub.com.au/~sincity/website_admin/';


Messages In This Thread
Removing index.php using htaccess works on one server and doesn't work on others! - by El Forum - 02-04-2013, 11:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB