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

[eluser]Tejas D[/eluser]

Hello,


I tried everything to remove index.php from the url,But failed to achieve it.


my directory structure is :

In var/www/

I have www
- ci
- application
- system
- index.php

**************************************

My httpd.conf file has


ServerName localhost

NameVirtualHost 127.0.0.1:8000
Listen 127.0.0.1:8000

<VirtualHost 127.0.0.1:8000>

DocumentRoot "/var/www/"

<Directory "/var/www/">
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>


********************************************


Also mod_rewrite is enabled. and $config['index_page'] = '';

*********************************************


so, what code should be there in .htaccess file and where to paste it.


please someone help me on this.


Also I have another directory structure as below

www
- demo
-ci

what .htaccess file will contain.


Give me code for both the directory structure.


Thanks..





#2

[eluser]foxybagga[/eluser]
Check this out http://ellislab.com/forums/viewthread/223644/

Cheers!
#3

[eluser]Tejas D[/eluser]
Hi..


Thanks man..

It worked




Theme © iAndrew 2016 - Forum software by © MyBB