0

I am not able to create a URL in WordPress like:

www.example.com/lp/time-cost/free-trial

When I add this URL, it's automatically changes to:

wwww.example.com/lptime-costfree-trial

Why are the slashes removed automatically?

2
  • That´s totally correct behaviour of the WordPress permalink engine, you are not supposed to add slashes, dots or special characters like that in your URLs.
    – flomei
    Commented Feb 15, 2016 at 16:31
  • So which way did you choose? Commented Feb 17, 2016 at 3:53

1 Answer 1

0

To get URL like www.example.com/lp/time-cost/free-trial you need to create parent child pages.

  1. Create lp as parent page

  2. Create time-cost as child page of above (lp page)

  3. Create free-trial as child page of (time-cost) page

Then if you access free-trial page you will get the URL like you want.

5
  • You can then, of course, access all those parent pages, too, as they are valid pages. Not sure if switch their status to "Review" would help, if you don´t want to have them accessible.
    – flomei
    Commented Feb 15, 2016 at 16:34
  • i know this solution, but i dont want to give access the people of parent pages.. only i want to give access to them only child page lp/time-cost/free-trial , is there any other way we can achieve this, any plugin available for this?? Commented Feb 15, 2016 at 18:41
  • this is not good way, i want to create these type of pages 1)lp/time-cost/freetrial 2)lp/time-bill/freetrial 2)lp/time-off/freetrial like this i will create 200 pages like this, so according to your solution i should create 600 pages including parent->child->child right??? Commented Feb 15, 2016 at 18:45
  • Yes. No plugin to achieve what you want. Also, you cannot use ` / ` in the url string as you want. ` / ` means something rather important in the /site navigation scheme. If you don't want people to have access to parent pages, then I feel what you want to do is not necessary. If you think that the URL structure you are looking for will help you in SEO then thats not the case. The quality content is sufficient for SEO. Commented Feb 16, 2016 at 6:56
  • Just in case you decide to go with creating parent-child pages to achieve the desired URL structure and don't want to give access to parent pages, then use [this plugin] (wordpress.org/plugins/quick-pagepost-redirect-plugin) to redirect from parent pages. Commented Feb 16, 2016 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.