#1
While learning "How To Make URLs More Search Engine Friendly" I cam across his error.
I pasted this URL In the browser:

https://localhost/demo_code/laptops

My Controller file is:

My custom_routing.php file is:
#2
Hi MFahad,

try http://localhost/demo_code/laptops instead for localhost

Also note, that if you want to add a view file you must declare the module name see this post for more info https://trongate.io/help_bar/thread/JgpCGHEjCrDL



Cheers,
Simon
#3
changed https to http but still not solved the error. For the time being I am not using any view file . I'm just printing a string in the browser window.
#4
Hi MFahad,

That's strange as it actually works fine for me, both with http:// and https:// as long as the BASE_URL is the same.

I've made a quick YouTube video to show you it working - I hope it helps and solves your issue.

https://youtu.be/O3BgDPtYW1I

ps. Sorry about the watermark on the video, I updated my laptop recently and still setting things up.
#5
By changing http to https in the BASE_URL , it works
#6
Could you please close this thread off, if you think the solution provided helped you?