Welcome Guest, Not a member yet? Register   Sign In
I hope it can help you! It is about the index.php.
#9

[eluser]Paul Scott[/eluser]
To do this entirely with a .htaccess is considerably simpler than using apache httpd.conf. The example for the .htaccess in the wiki is assuming that your CI application will go into the root of your domain, however, this is not how I wanted it when I was working on my application.

To account for this, I changed the .htaccess to support the following types of URL:
http://localhost/projects/projectname/in...ler/method

Code:
RewriteEngine on
RewriteBase /projects/projectname/
RewriteCond $1 !^(index\.php|images|robots\.txt|files)
RewriteRule ^(.*)$ index.php/$1 [L]

Note: You need to have the apache module `mod_rewrite` installed.
Hope that helps somebody


Messages In This Thread
I hope it can help you! It is about the index.php. - by El Forum - 10-17-2007, 09:07 PM
I hope it can help you! It is about the index.php. - by El Forum - 10-17-2007, 09:59 PM
I hope it can help you! It is about the index.php. - by El Forum - 10-17-2007, 11:42 PM
I hope it can help you! It is about the index.php. - by El Forum - 10-18-2007, 12:43 AM
I hope it can help you! It is about the index.php. - by El Forum - 10-18-2007, 03:35 AM
I hope it can help you! It is about the index.php. - by El Forum - 10-18-2007, 08:15 AM
I hope it can help you! It is about the index.php. - by El Forum - 10-18-2007, 09:26 AM
I hope it can help you! It is about the index.php. - by El Forum - 10-21-2007, 08:10 PM
I hope it can help you! It is about the index.php. - by El Forum - 10-22-2007, 01:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB