For local host
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
Cake php rewrition 3.0
$routes->connect(‘/’, [‘controller’ => ‘Pages’, ‘action’ => ‘home’]);
$routes->connect(‘/users/login’, [‘plugin’ => ‘Admin’,’controller’ => ‘Admin’,’action’ => ‘login’]);
$routes->connect(‘/lovingpage/loation/:cCityID/:cityName’, [‘controller’ => ‘city’, ‘action’ => ‘pickup_locations’, ‘cCityID’ => ‘[0-9]+’, ‘cityName’ => ‘[a-z]’]);
How to add plugin in cake php
bootstrip .php
Plugin::load(‘Admin’, [‘routes’ => true, ‘autoload’ => true]);
Advertisements