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/c78dd8e985ede1ad50c31ac682dd91a1.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/1936f7e8963ff0f800f5eb4b43bc833c.webp?size=256)
Clown
Unless its static export u cant.
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.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/c78dd8e985ede1ad50c31ac682dd91a1.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/44415017de6fed2ccd5d44b4b2051ac0.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/44415017de6fed2ccd5d44b4b2051ac0.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)