Jump to content

hide parent in url


webhoes
 Share

Recommended Posts

Hello,

I want to make some landing pages. For that I have created a landing-pages templates that hold landing-page as children. Each child I will use to target a specific keyword for google.

How can I omit the parent url (landing-pages).

So landing-pages/the perfect keyword for google/

wil be

/the perfect keyword for google/

 

I use the the landing-pages template to keep the admin organised and not have a huge amount of pages under Home in the admin.

Link to comment
Share on other sites

I already found most of these links. As far as I can see the make it so that a page has 2 routes. It's orginal and the alternative

I want just one route (the one without the parent). I also want the to be without the parent in the sitemap.xml.

 

Link to comment
Share on other sites

1 hour ago, webhoes said:

I want just one route (the one without the parent)

The links pasted by others above should help with this. To be more specific have a look at this post:

from the sub-section /site/templates/includes/hooks.php as also discussed here.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...