Skip to content

Commit

Permalink
Removed extra index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
givanz committed Mar 1, 2024
1 parent b75de2e commit 28be959
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
'/{language{2,5}}/shop/{slug}' => ['module' => 'product/index'],
'/{language{2,5}}/shop/{slug}/#page#' => ['module' => 'product/index'],
'/{language{2,5}}/manufacturer/{slug}' => ['module' => 'product/manufacturer'],
'/{language{2,5}}/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'index.php?module=product/product&slug={slug}'],
'/{language{2,5}}/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'],

//catalog
'/shop' => ['module' => 'product/index'],
Expand All @@ -86,7 +86,7 @@
'/manufacturer/{slug}' => ['module' => 'product/manufacturer/index'],
'/vendor/{slug}' => ['module' => 'product/vendor/index'],
'/vendor/{slug}/#page#' => ['module' => 'product/vendor/index'],
'/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'index.php?module=product/product&slug={slug}'],
'/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'],

//compare
'/cart/compare' => ['module' => 'cart/compare/index'],
Expand All @@ -102,7 +102,7 @@
'/{language{2,5}}/manufacturer/{slug}' => ['module' => 'product/manufacturer/index'],
'/{language{2,5}}/vendor/{slug}' => ['module' => 'product/vendor/index'],
'/{language{2,5}}/vendor/{slug}/#page#' => ['module' => 'product/vendor/index'],
'/{language{2,5}}/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'index.php?module=product/product&slug={slug}'],
'/{language{2,5}}/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'],

//checkout
'/cart' => ['module' => 'cart/cart/index'],
Expand Down Expand Up @@ -141,11 +141,11 @@
//'/#year#/#month#/#day#'=> ['module' => 'content/archive/index'],

//post
//'/#year{4,4}#-#month{1,2}#-#day#/{slug}' => ['module' => 'content/post/index', 'edit'=>'index.php?module=content/post&slug={slug}'],
'/{slug}' => ['module' => 'content/post/index', 'edit'=>'index.php?module=content/post&slug={slug}&type=post'],
//'/#year{4,4}#-#month{1,2}#-#day#/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}'],
'/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}&type=post'],
//page
//'/{slug}' => ['module' => 'content/page/index', 'edit'=>'index.php?module=content/post&slug={slug}'],
'/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'index.php?module=content/post&slug={slug}&type=page'],
//'/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}'],
'/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}&type=page'],

//multi language content - language code must be at least 2 characters
'/{language{2,5}}/' => ['module' => 'index/index'],
Expand All @@ -155,8 +155,8 @@
'/{language{2,5}}/blog' => ['module' => 'content'],
'/{language{2,5}}/cat/{slug}' => ['module' => 'content/category/language'],
'/{language{2,5}}/tag/{slug}' => ['module' => 'content/tag/index'],
'/{language{2,5}}/{slug}' => ['module' => 'content/post/index', 'edit'=>'index.php?module=content/post&slug={slug}'],
'/{language{2,5}}/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'index.php?module=content/post&slug={slug}'],
'/{language{2,5}}/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}'],
'/{language{2,5}}/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}'],

'/{language{2,5}}/tag/{slug}' => ['module' => 'content/tag/index'],
'/{language{2,5}}/tag/{slug}/#page#' => ['module' => 'content/tag/index'],
Expand Down

0 comments on commit 28be959

Please sign in to comment.