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

Hello guys,

I have this structure of files and folders:

Code:
framework
-- app
---- cache
---- config
---- controllers
---- models
---- ....
-- system
public
-- assets
---- css
---- js
---- ...
-- uploads
-- .htaccess (2)
.htaccess (1)


In the .htaccess nr. 1 i have:

Code:
<IfModule mod_rewrite.c>
   Options -MultiViews

RewriteEngine on

RewriteRule  ^$ public/    [L]
   RewriteRule  ((?s).*) public/$1 [L]
</IfModule>

In the .htaccess nr. 2 i have:

Code:
<IfModule mod_rewrite.c>
RewriteEngine on

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

The problem is:
1. When i access 127.0.0.1 it gives me CI error 404
2. When i access 127.0.0.1/public it display the welcome page

Can u help me a bit with this .htaccess files please?

Thanks.
Reply


Messages In This Thread
Help with .htaccess - by -V1cu- - 03-07-2017, 04:20 AM
RE: Help with .htaccess - by InsiteFX - 03-07-2017, 05:12 AM
RE: Help with .htaccess - by -V1cu- - 03-07-2017, 06:03 AM
RE: Help with .htaccess - by koficypher - 03-07-2017, 06:58 AM
RE: Help with .htaccess - by koficypher - 03-07-2017, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB