Welcome Guest, Not a member yet? Register   Sign In
Problem with remove index.php codelniter 2.0
#1

[eluser]ivelin[/eluser]
I can't remove index.php, .htaccess->
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /ci/index.php/$1 [L]
My OS is ubuntu 10.04. Help me please
#2

[eluser]InsiteFX[/eluser]
Did you remove this in your application/config/config.php
Code:
// should be like this.
$config['index_page'] = '';

InsiteFX
#3

[eluser]ivelin[/eluser]
I did it, but another problem
#4

[eluser]DjLeChuck[/eluser]
Hi,

This is my .htaccess and it works. Smile
Code:
#    Enregistrez ce fichier en .htaccess
#   Empêche la visualisation de l'arborescence, n'a rien à voir avec le masquage du "index.php"
Options -Indexes

#   Active le module de réécriture d'url
RewriteEngine on

#
#   Fixe les règles de réécriture d'url. Ici, nous utilisons une liste blanche
#

#   Toutes les urls qui ne correspondent pas à ces masques sont réécrites.
RewriteCond $1 !^(index\.php|assets/|robots\.txt)

#   Toutes les autres urls vont être redirigé vers le fichier index.php
RewriteRule ^(.*)$ index.php/$1 [L]
#5

[eluser]ivelin[/eluser]
is not this problem.....
Quote:sudo apache2ctl -l

Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
prefork.c
http_core.c
mod_so.c
Quote:/etc/apache2/mods-enabled$


alias.conf autoindex.conf mime.conf rewrite.load
alias.load autoindex.load mime.load setenvif.conf
auth_basic.load cgi.load negotiation.conf setenvif.load
authn_file.load deflate.conf negotiation.load status.conf
authz_default.load deflate.load php5.conf status.load
authz_groupfile.load dir.conf php5.load
authz_host.load dir.load reqtimeout.conf
authz_user.load env.load reqtimeout.load
Quote:/etc/apache2/sites-available/000-default

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/az/PHP
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/az/PHP/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
I changed
Quote: AllowOverride None
with
Quote: AllowOverride all
#6

[eluser]Edmundas Kondrašovas[/eluser]
Are you sure you have mod_rewrite enabled on your local server?




Theme © iAndrew 2016 - Forum software by © MyBB