Support » Plugin: WordPress Landing Pages » Make Homepage for all pages (Maintenance Landing Page)

  • Resolved airmvp23g

    (@airmvp23g)


    I was able to get the plugin to work and the extension Use Landing Page as Homepage to work as well (GREAT plugins). My problem is directing all pages on site to the landing page(maintenance mode). I am assuming .htaccess will do this, but I can’t figure out what to add along with what was already added from the plugin. In addition, I tried to use Godaddy to at least try to redirect all traffic to the permalink (slug) for the template without using the Use Landing Page as Homepage plugin, but I get a redirect error.

    Please help.

    Thanks.

    http://wordpress.org/extend/plugins/landing-pages/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hudson Atwell

    (@adbox)

    Hi I think this can be done with htaccess if you like. We don’t have an extension for this yet but I’ll mark it down to make one:

    In the meantime here’s a way to accomplish it with .htaccess:

    http://perishablepress.com/htaccess-redirect-maintenance-page-site-updates/

    Thanks. I have tried that code. The problem I’m having is redirecting after the Landing Page add Homepage plugin had redirected to the landing page first. As I may have mentioned the your Landing Page as Homepage plugin adds code to the htaccess in order to use the created template as a homepage. So i need to have it redirect all traffic to the template which is also the homepage. I hope that makes sense.

    Thanks again.

    Plugin Author Hudson Atwell

    (@adbox)

    Will you post the current .htaccess file? In the meantime I’ll investigate building a new extension.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^dt/([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect.php?permalink_name=$1 [QSA,L]
    RewriteRule ^langing-page-group=([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect.php?permalink_name=$1 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    This is combination of WordPress permalink code and Landing Page as Homepage plugin.

    Thanks.

    Plugin Author Hudson Atwell

    (@adbox)

    Try adding this to the bottom:

    # MAINTENANCE-PAGE REDIRECT
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{REQUEST_URI} !/ [NC]
     RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
     RewriteRule .* / [R=302,L]
    </IfModule>

    Try this? We don’t have a paid advanced support right now but the idea is to say:

    if not an image and not an attempt to access the base directory, redirect to base directory. And this should not affect the lander as homepage extension work. … but I’m not positive.

    That did work without the Permalinks enables though. And the url says http://www.domain.com/?landing-page=main1
    So it uses the Landing Page as Homepage and redirects all traffic to homepage.

    Is there anyway to just have the http://www.domain.com without the landing page info.

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Make Homepage for all pages (Maintenance Landing Page)’ is closed to new replies.