helloworld001 Posted January 17, 2015 Share Posted January 17, 2015 Right now my website url appears like this. http://www.mywebsite.com/index.php I was wondering if there is a way to remove the index.php and just have it show like this when someone goes to the website? http://www.mywebsite.com Link to comment https://forums.phpfreaks.com/topic/294005-how-would-you-remove-the-indexphp-when-visiting-a-url/ Share on other sites More sharing options...
requinix Posted January 17, 2015 Share Posted January 17, 2015 Don't put "index.php" in your links. If the file doesn't load automatically then your web server doesn't know that it can treat index.php as an "index" file in a directory. Or are you talking about redirecting from /index.php to /? Link to comment https://forums.phpfreaks.com/topic/294005-how-would-you-remove-the-indexphp-when-visiting-a-url/#findComment-1503240 Share on other sites More sharing options...
NotionCommotion Posted January 17, 2015 Share Posted January 17, 2015 I've never done so, but am certain it has to do with Apache (or equal) and probable mod_rewrite. Link to comment https://forums.phpfreaks.com/topic/294005-how-would-you-remove-the-indexphp-when-visiting-a-url/#findComment-1503241 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.