Welcome Guest, Not a member yet? Register   Sign In
URI Routing from CI app name to my web root
#1

[eluser]tlam[/eluser]
Right now, I can access pages within the framework like the following:

http://localhost/codeigniter/helloworld

I already have existing modules under localhost and would like to slowly migrate my old codes to CI. For the time being, I'll code my new modules in CI. What should I change to display my CI modules under localhost(assuming that they are unique), for example:

http://localhost/helloworld
#2

[eluser]Colin Williams[/eluser]
You could do a piecemeal mod_rewrite in your localhost doc root.

Code:
# Should be in something like /var/www/htdocs/.htaccess, not /var/www/htdocs/codeigniter/.htaccess
RewriteEngine on
RewriteRule ^(module_x|module_y|module_z)$ codeigniter/index.php/$1 [L,QSA]




Theme © iAndrew 2016 - Forum software by © MyBB