Page 1 of 1

Is it posible to hide the index.php after the domain?

Posted: 2022-12-17 17:52
by urichard
I installed Appgini on my server and realized it displays the file that's being accessed, is it possible to hide the file being accessed and instead of showing mywebsite.com/index.php it will show for the "Home" page after logging in only mywebsite.com and if something is clicked for example on Northwind if they choose Customers then it will only show the following: mywebsite.com/customers and not the file extension?

See attached an example of Microsoft teams not displaying which file is being accessed

Re: Is it posible to hide the index.php after the domain?

Posted: 2022-12-18 21:11
by urichard
Helo?

Re: Is it posible to hide the index.php after the domain?

Posted: 2022-12-19 00:56
by peebee
You can remove file extensions and rewrite URLs using .htaccess directives - however, while I haven't tried it, I expect it may/will likely cause problems for your app?

Just Google ".htaccess rewrite redirect" or ".htaccess rewrite generator" - there are thousands of examples and even .htaccess generators that will do the job.

Any other alternative I would think would be a LOT of work.

Re: Is it posible to hide the index.php after the domain?

Posted: 2022-12-20 10:33
by urichard
Oky great thanks peebee