WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Landing Pages
[resolved] Make Homepage for all pages (Maintenance Landing Page) (7 posts)

  1. airmvp23g
    Member
    Posted 1 year ago #

    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/

  2. Hudson Atwell
    Member
    Plugin Author

    Posted 1 year ago #

    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/

  3. airmvp23g
    Member
    Posted 1 year ago #

    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.

  4. Hudson Atwell
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. airmvp23g
    Member
    Posted 1 year ago #

    <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.

  6. Hudson Atwell
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. airmvp23g
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.