• Resolved David_G

    (@questas_admin)


    I have a plugin (Site Offline) which allow you to use your own html for the offline mode. However it doesn’t tell the search engines you are doing maintenance. I know it can be done with php, and I know you can include php in an html file. The question, should I name the php file maitenance.php and place it in the root directory?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t know site offline.

    I use WP Maintenance Mode. It has a bypass for search engines (if you want to use it), otherwise, they’ll see the maintenance page just like others do. As for your own html, it says:

    You can add your own html by dropping a wp-maintenance-mode.php file in the wp-content folder. It will automatically be used instead of the default html. The default html Markup and my source for countdown and more find you in the site.php inside the plugin folder of this plugin.

    Thread Starter David_G

    (@questas_admin)

    Update: going offline for updating.
    Plugin’s require WP to be operating. I am going to do a series of updates from a much earlier version of WP. After reading about such an update, the recomendation is to manually update no more than 2 version steps at a time. That being the case, and the time necessary, a plugin won’t work. I have an html file with php added to it. Default.html is the first file in the heirarchy when site is being browsed, so I figured I would use that or index.html. I was hoping someone would look at the source of my file and tell me if I have done the php stuff properly. LINK

    The thing is that html file is not automatically processed by php, so the php code you put in that html file isn’t processed.
    Look here, for example, it’ll explain the “issue” better than me.

    Anyway, and this is just a suggestion, since these kind of stuff doesn’t regard to the customizr theme, next time you’d better ask in the general forum (or in a specific section, if any), I think you might find more help there than here.

    Thread Starter David_G

    (@questas_admin)

    Your right it doesn’t directly have to do with Customizr, but when I tried to setup customizr on the main site with my coding from the test site it was all screwed up. I figured it was because I have a much earlier version of WP on the main site. Hence the upgrading.
    One last question regarding this thread. If a php file calls a separate html file, then I should get the results I need (temporary blocking the search engines with a 503) and then call the html page for human users. Will that work?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Creating an Offline mode file’ is closed to new replies.