Call Us : +1-678-551-2452
+91 77381-86899

Configuring index.html and index.php redirection issue in WordPress

By default, WordPress redirects index.php requests to URLs configured in the .htaccess file. Sometimes, we would like to have an “Under Construction” static page in an index.html within the root of the WordPress installation, and also a WordPress deployment accessible through the index.php link, for clients to review.

In order to manage what is termed as “canonical redirects” in WordPress, upload the Disable Redirection WordPress plugin (click to download) and activate it.

Next, in your WordPress deployment .htaccess file, add the following line, at the end of the file:

DirectoryIndex index.html

Now, the “Under Construction” static index.html file is the default file that gets rendered on the domain name. To access the WordPress deployment, explicitly name the index.php in the URL, as below:

http://www.website.com/index.php
Leave a Reply

Pay with PayPal

Icon Web Solutions Service
Other Amount:
Name:

Testimonials

It has been a great pleasure working with Icon Web Solutions on the development of my digitized logo and website. From the initial phases of web design, the Icon Web Solutions team has been a pleasure to work with
Naren, USA

REQUEST A QUOTE

Request A Quote

Please fill the form to request a quote from us

Name (required)

Email (required)

Phone

Services
 Website Design & Development Logo Design SEO SMO Payment Gateway Integration Others

Any Other Detail

Input Text Shown in Image
captcha