Welcome Guest, Not a member yet? Register   Sign In
Eliminating the index segment in a URL (htaccess)
#1

[eluser]tim042829[/eluser]
FYI: I am an experienced web developer (reference http://ellislab.com/forums/viewthread/162794/)
but I am new to PHP and codeIgniter.
I am working in a linux environment.

See: http://blog.insicdesigns.com/2009/02/bui...rk-part-1/

With the following .htaccess:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
I can request /documentroot/CodeIgniter/system/application/controllers/test.php as
http://localhost/CodeIgniter/index/test/
Is there a way to eliminate the '/index/' segment (path part) from
the URL above?

I'm a noob if not a boob when it comes to .htaccess.
TIA
Tim


Messages In This Thread
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 11:50 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 05:16 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 05:47 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 07:09 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 07:35 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 09:28 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 10:23 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 12:36 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-07-2010, 06:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB