Replies: 1 comment
-
Hi You need to edit Pages have You need to swap page configuration with post. Now it's like this '/{slug}' => ['module' => 'content/post/index', 'edit'=>'index.php?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'], You need to change it to '/page/{slug}' => ['module' => 'content/post/index', 'edit'=>'index.php?module=content/post&slug={slug}&type=post'],
//page
//'/{slug}' => ['module' => 'content/page/index', 'edit'=>'index.php?module=content/post&slug={slug}'],
'/{slug}' => ['module' => 'content/page/index', 'edit'=>'index.php?module=content/post&slug={slug}&type=page'], You might need to clear cache after the change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
is there a chance to skip /pages in urls or is the way to manage redirections or make friendly urls?
I'm asking as current website have structure like this and it's well ranked with google:
for example
/about
/gallery
/faq
and more..
so basically all pages :)
Beta Was this translation helpful? Give feedback.
All reactions