Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess for multiple application in Kohana V3
    text
    copied!<p>Hi I have setup multiple application in Kohana v3, it works normally without enabling .htaccess (to remove index.php or admin.php)</p> <p>my setup</p> <pre> + system/ + modules/ + applications/ + public/ + bootstrap.php + ... + admin/ + bootstrap.php + ... + index.php (for 'public' application) + admin.php (for 'admin' application) </pre> <p>so to access the frontend sample url will be;</p> <pre> http://mydomain.com/index.php/(controller_name)/... </pre> <p>and to access administration site;</p> <pre> http://mydomain.com/admin.php/(controller_name)/... </pre> <p>The task is, I want to remove and replace index.php (default url) and admin.php with /admin/ using .htaccess (mod_rewrite) so it can be</p> <pre> http://mydomain.com/(controller_name) &lt;- 'public' application http://mydomain.com/admin/(controller_name) &lt;- 'admin' application </pre> <p>my current .htaccess (not working) is;</p> <pre> # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /ko3/ # Protect hidden files from being viewed Order Deny,Allow Deny From All # Protect application and system files from being viewed RewriteRule ^(?:web-apps|modules|core)\b.* index.php/$0 [L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # TODO: rewrite admin URL to admin.php/URL #RewriteRule ^admin/(.*) admin.php/$0 [L] # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT] </pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload