Wordpress WP.net Visual Studio localhost wont run index.php
7 posts
• Page 1 of 1
Wordpress WP.net Visual Studio localhost wont run index.php
Hi
I have downloaded and setup WordPress.
It was all fine until i was done to test it.
Visual Studio localhost wont run the index file.
It's just the: Directory Listing -- /wpdotnet/ page.
It's possible to run the wpdotnet/wp-admin/index.php but not the wpdotnet/index.php file. It just throw me back to Directory Listing page.
Please Help
I have downloaded and setup WordPress.
It was all fine until i was done to test it.
Visual Studio localhost wont run the index file.
It's just the: Directory Listing -- /wpdotnet/ page.
It's possible to run the wpdotnet/wp-admin/index.php but not the wpdotnet/index.php file. It just throw me back to Directory Listing page.
Please Help
- Madde
- Posts: 7
- Joined: December 13th, 2012, 2:50 pm
Re: Wordpress WP.net Visual Studio localhost wont run index.
Hi,
WordPress checks the URL and redirects you automatically to root dir in case of index.php file.
You have to add defaultDocument configuration.
Add following into your web.config, into <configuration><system.webServer>
WordPress checks the URL and redirects you automatically to root dir in case of index.php file.
You have to add defaultDocument configuration.
Add following into your web.config, into <configuration><system.webServer>
- Code: Select all
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Wordpress WP.net Visual Studio localhost wont run index.
Thanks!
Makes all sense but
this is already in there:
Makes all sense but
this is already in there:
- Code: Select all
<defaultDocument>
<files>
<remove value="index.php"/>
<add value="index.php"/>
</files>
</defaultDocument>
- Madde
- Posts: 7
- Joined: December 13th, 2012, 2:50 pm
Re: Wordpress WP.net Visual Studio localhost wont run index.
It is but IIS is still not handling index.php as a default document.
What is your web server ? IIS, IIS Express, Apache ? It would be related to specific version of your server.
What is your web server ? IIS, IIS Express, Apache ? It would be related to specific version of your server.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Wordpress WP.net Visual Studio localhost wont run index.
It's Visual Studio Developer Server.
It's working on the usual IIS.
Just visual Studio that's the problem.
But it's Ok i use the usual iis instead.
It's working on the usual IIS.
Just visual Studio that's the problem.
But it's Ok i use the usual iis instead.
- Madde
- Posts: 7
- Joined: December 13th, 2012, 2:50 pm
Re: Wordpress WP.net Visual Studio localhost wont run index.
I don't know how to set default document on VS dev server ... there should be a way ...
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Wordpress WP.net Visual Studio localhost wont run index.
Yes you just right click on the file and click set default document but it's not an option on php files. but the Web.config trick should do it but i don't know why it doesn't work.
- Madde
- Posts: 7
- Joined: December 13th, 2012, 2:50 pm
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 20 guests