brad
August 14, 2019, 6:21pm
1
I followed this tutorial and it is pretty straight forward.
URL Rewriting (also known as Routing) can greatly improve the usability and SEO of your site.
It’s really easy to setup URL Rewriting in Wappler visually, without dealing with complicated .htaccess rules and regular expressions.
What is URL Rewriting?
Most dynamic sites include variables (query parameters) in their URLs that tell the site what information to show the user. For example the following URL tells the scripts on the page to load product number 3:
https://someurl.com/product_detail…
How do I set a route for the home page though? The tutorial only shows secondary pages. I'm sure it's something obvious I just can't get my head around and it's too early in the day to start drinking beer so I thought I'd ask here.
scott
August 14, 2019, 6:24pm
2
I use /home for the route and index.php for the page. I have a second route with just / and index.php as well.
2 Likes
Teodor
August 14, 2019, 6:24pm
3
It's already beer time here
You can just add /
as a path for your homepage and link to index.html(.pjp)
2 Likes
brad
August 14, 2019, 6:28pm
4
Hmmm, I think I tried that. I will try again. Beer time can't come soon enough. lol
Thanks
1 Like
brad
August 14, 2019, 6:32pm
5
Good lordy. That was too obvious. I see what I was doing wrong. I feel kinda dumb now. lol
1 Like
scott
August 14, 2019, 6:34pm
6
@brad , not at all !
Would you like to see my spelling mistakes I have posted here that caused me errors? lol
2 Likes
Teodor
August 14, 2019, 6:40pm
7
Great to hear everything is fine now Brad, cheers with a nice west coast IPA
1 Like