preben Posted August 26, 2013 Share Posted August 26, 2013 My website domain is example.com but theres nothing on there. the content is on example.com/index.php How can i make the content on index.php show on example.com or redirect it to index.php Thanks. 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted August 26, 2013 Share Posted August 26, 2013 If your web server is Apache, you need to add index.php to the DirectoryIndex directive. This is assuming you have PHP installed and configured properly. http://httpd.apache.org/docs/2.2/mod/mod_dir.html 0 Quote Link to comment Share on other sites More sharing options...
preben Posted August 26, 2013 Author Share Posted August 26, 2013 If your web server is Apache, you need to add index.php to the DirectoryIndex directive. This is assuming you have PHP installed and configured properly. http://httpd.apache.org/docs/2.2/mod/mod_dir.html I dont understand is there a simpler solution. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted August 26, 2013 Share Posted August 26, 2013 Put this line in your .htaccess. Redirect 301 ^$ http://www.yourwebsite.com/index.php [R=301,L] When a visitor requests yourwebsite.com he will be automatically redirected to yourwebsite.com/index.php. 0 Quote Link to comment 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.