Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite for multiple applications
#15

[eluser]@robertotra[/eluser]
As regards to the solutions proposed, I see that if we need to differentiate between totally differently applications, best way is by using url-rewriting in .htaccess (but remembering that we need to setup the general home page of our website either as application independent or redirecting to the home page of the main application) while if we need just to differentiate between public pages and administration pages (as it seems this case) it is better to use controllers subfolders, even because administration tasks will probably require same models of the public parts to retrieve data and totally separating applications will cause to duplicate code between different applications, generating a maintenance nightmare :-)

Maybe it is worth to remind also that creating a controllers subfolder (especially if for administration purposes) works better if we add CI's url routing rule to set up a default page for the subfolder when it is the only part present in the URI (to show a login form as example) avoiding the default redirection to application home page, that might be not the best solution for all cases.

Bye
Roberto


Messages In This Thread
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 09:17 AM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 09:58 AM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 11:52 AM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 11:58 AM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:04 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:07 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:09 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:17 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:22 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 12:24 PM
mod_rewrite for multiple applications - by El Forum - 02-05-2012, 09:19 PM
mod_rewrite for multiple applications - by El Forum - 02-06-2012, 01:13 AM
mod_rewrite for multiple applications - by El Forum - 02-06-2012, 01:32 AM
mod_rewrite for multiple applications - by El Forum - 02-06-2012, 01:37 AM
mod_rewrite for multiple applications - by El Forum - 02-06-2012, 04:58 AM
mod_rewrite for multiple applications - by El Forum - 02-07-2012, 01:50 AM
mod_rewrite for multiple applications - by El Forum - 02-07-2012, 02:52 AM
mod_rewrite for multiple applications - by El Forum - 02-07-2012, 03:17 AM
mod_rewrite for multiple applications - by El Forum - 02-07-2012, 11:45 AM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 11:32 AM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 11:40 AM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 11:56 AM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 11:58 AM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:11 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:19 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:28 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:34 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:42 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 12:57 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 01:05 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 01:19 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 01:46 PM
mod_rewrite for multiple applications - by El Forum - 04-07-2012, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB