Welcome Guest, Not a member yet? Register   Sign In
Accessing URL...
#1

[eluser]raiser[/eluser]
Dear Friends,

I am accessing CI project url's like
Quote:http://localhost/codeigniter/index.php/register
..

My question is, is it possible to use this like
Quote:http://localhost/codeigniter/register

It means, i dont want to show the index.php and also which type of file it is?

Kindly help me to overcome this...
#2

[eluser]Madmartigan1[/eluser]
It's on the wiki here:

http://codeigniter.com/wiki/mod_rewrite/

Assumes you are running Apache server and can use .htaccess

Google "codeigniter htaccess" for more tricks and help.

GL
#3

[eluser]daniel ispas[/eluser]
I use something like this in my .htaccess file:

RewriteEngine on
RewriteRule ^$ /index.php? [L]
RewriteCond $1 !^(index\.php|data|css|js|uploads|images|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]

Hope this helps.




Theme © iAndrew 2016 - Forum software by © MyBB