0

I have too many content in a Drupal 7 website which have this pattern for their URLs:

www.mysite.com/part1/part2/title.html

Now I want to show the user the same page when the URL is

www.mysite.com/part1/part2/title

or

www.mysite.com/part1/part2/title.htmlldkfkldfj

I mean some none meaningful characters after html.

Now I just get 404 page not found for the URLs other than the exactly correct one. I know about canonical URLs. But it has been made for the cases which two URLs are pointing to the same page.

Is there any way to do it?

  • Youcan use pathauto module in Drupal where you can provide tokens and achieve the URL – Shreya Shetty Feb 12 '18 at 6:23
  • @ShreyaShetty but I need to have several aliases for the same content and it's not possible with this module. is it possible? – shekoufeh Feb 12 '18 at 7:42
  • No then its not possible – Shreya Shetty Feb 12 '18 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.