How to use app router to use .html in the end for all the pages?
Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Cuvier’s Dwarf CaimanOP
for example-
1. parent.html
2. parent/child.html
3. parent/child/sub-child.html and so on
1. parent.html
2. parent/child.html
3. parent/child/sub-child.html and so on
15 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
Is this for static export?
as unless trailing slash is enabled, it should do that
otherwise, i don't think you can do this for general server (without custom weidness like every route end with it)
![Avatar](https://cdn.discordapp.com/avatars/678259999201427466/a_54265510de155a7d7909e4d21d587a76.gif?size=256)
Clown
Unless its static export u cant.
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/f386ac21405ce3442e0f3598223e1cb3.webp?size=256)
joulev
Rewrite requests ending with .html to corresponding pages without the .html
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Cuvier’s Dwarf CaimanOP
It's not static export.
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
ahh yeah that actually sounds smart
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Cuvier’s Dwarf CaimanOP
I tried creating a directory with category.html and for child category, created a separate directory category/
it worked but this is not a proper way so looking for a genuine way
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/f386ac21405ce3442e0f3598223e1cb3.webp?size=256)
joulev
A proper way doesn’t exist
Unless you want to
app/category.html/page.tsx
app/category/settings.html/page.tsx
app/category.html/page.tsx
app/category/settings.html/page.tsx
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
Cuvier’s Dwarf CaimanOP
hmm ..then I have to go with customized routing only
can you provide further details for the same?
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/f386ac21405ce3442e0f3598223e1cb3.webp?size=256)
joulev
app/category.html/page.tsx gives the /category.html route that’s all?
(category.html here is a folder not a file)