Please Help Me In This | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please Help Me In This

So I Want To Know How Some Websites Their URL like it https://hrforecast.com/ten-in-demand-it-skills-you-should-gain-in-2022/ i mean with slash how they get the blog name please tell me My website www.blogmaria.live So As You Can See In My Website There R Many Blogs So I Need That Blogs Name Come With Slash like blogmaria.live/thetaleoftwocities

13th Apr 2022, 6:26 AM
Papa Penguin
2 Answers
+ 3
I think it depends on your web site's back end. Like in a flask server you can easily do that by using something similar to @app.route['blog-name'] pageToRender(){}. I don't know much about react but if you are using the react router dom then probably it is the same as well. Correct me if I am wrong.
13th Apr 2022, 8:11 AM
Ved Thaker
Ved Thaker - avatar
+ 2
Like Ved Thaker said if you are using a framework like flask the routing of your website will be different but if you are using just regular HTML, Try: Create a folder: Root -| Index.html MyFolder -| Index.html The act of creating the folder (directory) and having the index file in it will say. If you go to ‘website.com/MyFolder’ it will return the index file in the MyFolder directory. You can keep adding folders inside on another if you wanted to. If you want multiple files just specify in the url, ‘website.com/MyFolder/anotherpage.html’ If you are using a certain web framework or backend that this won’t work on please specify!
13th Apr 2022, 1:32 PM
Dev-117
Dev-117 - avatar