Welcome Guest, Not a member yet? Register   Sign In
Removing index.php using htaccess works on one server and doesn't work on others!
#6

[eluser]Matthew Potter[/eluser]
Although it is bad practice, you can install a new version into a sub-directory so long as you create a new .htaccess file with the appropriate Rewrite Base defined within that installation’s root directory and update it’s base url in the configuration.

Seriously though, if you install the HMVC into your base installation, it would be far easier:

Installation process:
Application->core +2 files
Application->third_party +1 folder
Application +1 folder called ‘modules’

Once it is installed, you just create a new folder in “modules” called “admin”. That new “admin” folder can now contain the folders “controllers”, “models”, “views”, etc… You can access them by exactly like you are now: [site_url]/module/controller/method/variables…
It also defaults to the expected:
http://site_url/module routes to http://site_url/module/module/index

For your URI schema, you would simply use “website_admin” instead of “admin” as the module name and primary controller.


Messages In This Thread
Removing index.php using htaccess works on one server and doesn't work on others! - by El Forum - 02-04-2013, 10:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB