Welcome Guest, Not a member yet? Register   Sign In
With index.php works. Without, don't... tried many things =/
#1

[eluser]punchi[/eluser]
Hi!

Long time I don't use CI hehe, nice 2.0.2 btw. However, im again stuck with the URL and I don't know this time why.

- Apache 2.2 / PHP 5.3
- LoadModule rewrite_module modules/mod_rewrite.so
- Fresh install of CI 2.0.2.
- http://localhost/CI/index.php/welcome/ --> works
- http://localhost/CI/welcome/ --> "Not Found"

.htacces (in http://localhost/CI/) tried:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

config:

$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';

---

Don't know what else more to try =(

Thanks!...
#2

[eluser]Zaher Ghaibeh[/eluser]
can you tell which one you have downloaded the CORE or the Reactor
#3

[eluser]toopay[/eluser]
Your htaccess expected CI in root directory, add your sub directory on it...
Code:
RewriteEngine On
RewriteBase /CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) CI/index.php?/$1
# Replace last line with this variation, if above not working
# RewriteRule ^(.*) /CI/index.php?/$1
# RewriteRule ^.* CI/index.php/$1
# RewriteRule ^.* /CI/index.php/$1
# Don't forget to clear your browser's cache, each time you modify .htaccess
If you want, your previous htaccess work, set up your environment first.
#4

[eluser]Rushino[/eluser]
Had similar problems.. use my thread http://ellislab.com/forums/viewthread/187047/ this may help.
#5

[eluser]punchi[/eluser]
[quote author="toopay" date="1303660802"]Your htaccess expected CI in root directory, add your sub directory on it...
Code:
RewriteEngine On
RewriteBase /CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) CI/index.php?/$1
# Replace last line with this variation, if above not working
# RewriteRule ^(.*) /CI/index.php?/$1
# RewriteRule ^.* CI/index.php/$1
# RewriteRule ^.* /CI/index.php/$1
# Don't forget to clear your browser's cache, each time you modify .htaccess
If you want, your previous htaccess work, ..ellislab.com/forums/viewthread/186025/#879855 set up your environment first.[/quote]

What you mean exactly with "Your htaccess expected CI in root directory, add your sub directory on it..." ??? I just have the CI in the same level as "application" and "system" and "user_guide"

Tried
Code:
RewriteEngine On
RewriteBase /CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) CI/index.php?/$1
and
Code:
RewriteEngine On
RewriteBase /CI/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /CI/index.php?/$1
RewriteRule ^.* CI/index.php/$1
RewriteRule ^.* /CI/index.php/$1
[quote author="Zaher Ghaibeh" date="1303654521"]can you tell which one you have downloaded the CORE or the Reactor[/quote]

It's the reactor.

[quote author="Rushino" date="1303675088"]Had similar problems.. use my thread ..ellislab.com/forums/viewthread/187047/ this may help.[/quote]

Thanks for the link. It gave me an idea... in the httpd.conf, I change the root "Directory" directive, I added "Options Indexes FollowSymLinks MultiViews", "AllowOverride all" and "Allow from 127.0.0.1".

Now "localhost/CI/welcome/" works, really dont know why, I cant explain it.

Thanks! =)
#6

[eluser]toopay[/eluser]
http://localhost/ = root directory
http://localhost/CI = CI is subdirectory of (in this case) localhost

Your past htaccess
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1
will work, if you set up CI folder as root directory which mean you should access it by "http://local.myciproject.com/". How to set up your CI project like that? I already give you link to http://ellislab.com/forums/viewthread/186025/#879855 which give 1-2-3 step of how to do that.
#7

[eluser]punchi[/eluser]
Thanks guys! thanks toopay but as its working fine right now, I dont want to change it hehehe, thanks again! ^^




Theme © iAndrew 2016 - Forum software by © MyBB