I’ve made a site with routes before. But right now, I’m doing something wrong and I can’t figure it out. Hopefully I’m missing something simple.
It looks like everything pops up correctly on my homepage, but the content of a route page just isn’t pulling up.
The main page is /layouts/mainpages/home.php. The first route I’d like to load is on …/…/_home.html on my site.(THIS IS THE CONTENT THAT ISN’T PULLING UP)
If I go to my website /home/ it works.
If I go to /home/buttontest/ the website loads (the home page header loads) but the content from button test does not load.
Are you sure your pages and htaccess are uploaded to your server?
I cannot access yoursite.com/layouts/mainpages/Home.php when i try in my browser … i am being redirected to the index.php page
But, literally, just before you posted that I noticed that the routes.json file was here locally, but missing on the remote server.
So, I did a full publish of the site and it all seems to work now.
/smh I thought I was doing it right. I guess I should double check for the routes.json file next time!
routes.js is only needed locally for the routing panel to be able to generate the htaccess rules and show your routes. Probably the htaccess r any of your files was missing from the server.