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 Quote 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 /? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.