Title: index.php redirects to localhost
Last modified: April 15, 2021

---

# index.php redirects to localhost

 *  Resolved [tomara83](https://wordpress.org/support/users/tomara83/)
 * (@tomara83)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/index-php-redirects-to-localhost/)
 * I run my site on WAMP, updated PHP to 7.4.16 and WordPress to latest, and after
   that:
 * <!DOCTYPE html>
    <html> <head> <title>Redirecting…</title> <meta http-equiv=”
   refresh” content=”0;url=http://localhost/wordpress”> </head> <body> <script type
   =”text/javascript”> window.location = “[http://localhost/wordpress&#8221](http://localhost/wordpress&#8221);;
   </script>
 *  <p>You are being redirected to [http://localhost/wordpress](http://localhost/wordpress)
   </p>
    </body> </html>`

Viewing 1 replies (of 1 total)

 *  Plugin Author [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * (@patrickposner)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/index-php-redirects-to-localhost/#post-14485596)
 * Hey [@tomara83](https://wordpress.org/support/users/tomara83/),
 * where is the index.php coming from? Simply Static does not use any PHP files 
   within the static export, just HTML/JS/CSS and image files.
 * Your setup is a bit tricky as well, as you are using a local environment and 
   WordPress installed in a subdirectory.

Viewing 1 replies (of 1 total)

The topic ‘index.php redirects to localhost’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

## Tags

 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 2 participants
 * Last reply from: [patrickposner](https://wordpress.org/support/users/patrickposner/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/index-php-redirects-to-localhost/#post-14485596)
 * Status: resolved