Welcome Guest, Not a member yet? Register   Sign In
need some help with .htaccess
#1

[eluser]al404[/eluser]
i'm at the beginning with CI

i have in my root

.htaccess
index.php
appweb/
cms/
cms/.htaccess
cms/index.php
appcms/

with the .htaccess in the root i can redirect correctli and is in this way

RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(appweb|appcms|system|cms|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

with the second (cms/.htaccess)

i can redirect the first call correctly but if i try to call some controllers like:
http://cicmsbasic.my/cms/login/form/

i get
404 page

the .htaccess is like this

RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

what is incorrect?

before adding .htaccess it did work correctly

what shoul it be $config['index_page']

i tryed
$config['index_page'] = "cms/";
and
$config['index_page'] = "";

but didn't work

if i do call this way it works
http://cicmsbasic.my/cms/index.php?login/form/




Theme © iAndrew 2016 - Forum software by © MyBB