gagrawal
Member
Posted 1 year ago #
Hello,
I have installed wordpress successfully on my local machine.
I created a demo page also for my site, but when I click "Visit Site" it takes me to the directory structure of root directory where wordpress is installed. all the files are displayed on the browser.
I'm not getting why it's happeing, please tell me.
Thanks
Gaurav Agrawal
Try configuring the DirectoryIndex on your local server.
nadafouad
Member
Posted 5 months ago #
Hi...I'm facing the same problem just like urs gagrawal. did u manage to fix? if yes, would you please tell me how??I'm getting really frustrated cause i tried everything!
Thanks
gagrawal
Member
Posted 5 months ago #
Add index.php to DirectoryIndex in Apache2.2 httpd.conf on Windows
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
That's what I did. We have to index our index.php first after that server will take it.
Ref:
http://itguykelly.wordpress.com/2006/11/01/add-indexphp-to-directoryindex-in-apache-httpdconf/
Let me know Once it is done!