Custom URLs | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Custom URLs

How can I make a custom ending like /maintenance/ instead of /maintenance.php ?

31st Jan 2018, 1:16 AM
epic gamer
epic gamer - avatar
1 Answer
+ 8
Do you mean you want to have a default file for a subdirectory, so you can navigate to http://webdomain/maintenance/ rather than http://webdomain/maintenance/maintenance.php If that's the case then you can save the maintenance.php as index.php in subdirectory maintenance/ that way when you navigate to http://webdomain/maintenance/ the index.php will be loaded because it is the default for maintenance/ folder. Pardon me if I misunderstood you : ) Hth, cmiiw
31st Jan 2018, 2:44 AM
Ipang