N
Nuxt2y ago
Thijs

Why does my `/ontdek/category` index page gives a forbidden?

Hi, Why does my /ontdek/category index page gives a forbidden? Everything seems to work fine except my /ontdek/category/index.vue this one gives a forbidden when I run yarn generate. My /ontdek and /ontdek/category/slug are working perfect. Someone who sees what my mistake is?
No description
No description
No description
49 Replies
Thijs
ThijsOP2y ago
On localhost it works too, but not on my server.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Yes I am
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Ah how would you try to fix the htacces then?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Nice will try, thanks! @dferderber What I see is that my public_html doesn't have a /ontdek/cases/index.html Created from the yarn generate So that's my category index /ontdek/[category]/[slug] where cases is a category So it should have an index.html right?
Thijs
ThijsOP2y ago
Also see this: @dferderber
No description
Thijs
ThijsOP2y ago
You see that in /ontdek you have my categories cases, media, nieuws and an index.html But in a category (cases) we don't have a index.html
Thijs
ThijsOP2y ago
Isn't there something wrong in my folder structure?
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
But there is a [category] index.vue?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Hmm
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
@moderator someone?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
I don't think you need to have a link to the page to be listed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Jup So will crawl everything without an url to it So my question stays legit right?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Strange
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Jup That looks fine indeed. But when you have like 50+ categories I guess you won't want to create a nuxtlink to every one of then
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Nope because the /ontdek/[category]/index indexes all the slugs in the category which is in my case 2 pieces in /ontdek/cases/ There it has to list my 2 items in the category /cases/
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
I'll try to use breadcrumbs in my /slug/
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Maybe it will crawl them then
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Building it now Will update you Fixed it So a small "hack" will be using breadcrumbs.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
But then you need to define it per category
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Thijs
ThijsOP2y ago
Not going to do that static per category haha
manniL
manniL2y ago
Should be enough if all are well-linked. The crawler will pick it up
Thijs
ThijsOP2y ago
How’d you mean? routes: ['/ontdek/category1', '/ontdek/category2', '/ontdek/category3'] Like this, but still static?
manniL
manniL2y ago
Well as long as categories are linked on subpages and those subpages are linked (so you can build a "graph" from a static site to all the categories) it will be fine
manniL
manniL2y ago
ChordAtlas
ChordAtlas - Your Piano Chord Database
ChordAtlas is a database for piano chords providing you detailed information to each chord and an interactive piano chart to discover the different chord inversions. If you've asked yourself how to play a specific chord, ChordAtlas has the answer!
Thijs
ThijsOP2y ago
Yup, so the breadcrumbs option
manniL
manniL2y ago
Eventually, all pages are linked from some page Breadcrumbs is one option indeed but doesn't have to be category pages are fine too, and a "category overview page"
manniL
manniL2y ago
ChordAtlas
Chord type overview
ChordAtlas is a database for piano chords providing you detailed information to each chord and an interactive piano chart to discover the different chord inversions. If you've asked yourself how to play a specific chord, ChordAtlas has the answer!
manniL
manniL2y ago
(But nicer 😂 )
Thijs
ThijsOP2y ago
Isn’t that what I tried? See my post Category index, but doesn’t show
manniL
manniL2y ago
Is the category index linked somewhere too?
Thijs
ThijsOP2y ago
No but does a request to my cms Which gets all my posts in that category
manniL
manniL2y ago
Well, it needs to be picked up somehow so let's say you have / / links to /categories /categories has a list of all /categories/<SLUG> /categories/<SLUG> has a list of sub-categories (e.g. /categories/<SLUG>/<SUBSLUG>) that would be fine just as an example
Thijs
ThijsOP2y ago
Aahhhhh Like that
Want results from more Discord servers?
Add your server