Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]clean urls and htaccess problem - host is useless
#1

[eluser]Cgull[/eluser]
Hello good people,

I am having a problem with clean urls and htaccess which I am trying to solve with my host for 2 days now.

It is getting ridiculous how I have to explain myself for about 4 times already with no solution from the hosts side.

I hope someone here can myabe help.

I am using codeigniter 2.1.2, WAMP PHP 5.3.13, Apache 2.2.22

I have uploaded my site to the live server under: public_html/dev

I have a controller controllers/admin/admin.php that checks if the user is logged in.
If the user is logged in it calls:
views/admin/dashboard/index.php

If the user is not logged in it calls:
views/auth/login.php

My htaccess file:
RewriteEngine On
#RewriteCond $1 !^(index\.php|assets|images|robots\.txt|captcha)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

If I go to the live site thinklocal.co.za/dev/admin I get this: No input file specified.
On my local machine it works fine.

Can someone please help?

At last I found an htacess that works:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /dev
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>

Halleluiah


Messages In This Thread
[SOLVED]clean urls and htaccess problem - host is useless - by El Forum - 03-28-2013, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB