Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7614563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:26:05+00:00 2026-05-31T02:26:05+00:00

I am currently developing a website and have a holding page in a /hold

  • 0

I am currently developing a website and have a holding page in a /hold folder. However I have my WordPress installation in the root too.

What I want is that if a user goes to:

www.domain.com

They get forwarded to:

http://www.domain.com/hold

However if someone goes to http://www.domain.com/index.php it loads WordPress instead. That way, I can still work on WordPress by going to /index.php and anyone who visits the site normally see’s the holding page.

I currently have this in my .htaccess:

# Set a default home directory, (this subfolder always loads)
# Replace 'folder' with your subfolder name
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ /hold/ [R=301,L]
</IfModule>

# Always use www in the domain
# Replace 'example.com' with your domain name
RewriteEngine on
#RewriteCond %{HTTP_HOST} ^([a-z.]+)?domain\.com$ [NC]
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule .? http://www.%1domain.com%{REQUEST_URI} [R=301,L]

RewriteBase /
RewriteCond %{HTTP_HOST} ^domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:26:06+00:00Added an answer on May 31, 2026 at 2:26 am

    You should be able to do this without resorting to mod_rewrite. How about:

    RedirectMatch ^/$ http://www.yourdomain.com/hold/
    

    See the RedirectMatch documentation.

    However you may be better off setting up a second virtualhost, so you can put your entire public site into holding (using something like RewriteRule ^.*$ /hold/ [R=503,L] to get the 503 HTTP status code) but still use the WordPress admin and site yourself through a different hostname. (I don’t know if WordPress will have problems with doing that; I have a feeling its insistence on knowing the domain it runs under may cause you problems, sadly.)

    (I suspect you’re running into problems because your first RewriteRule assumes RewriteBase / will already have happened, although it’s been a while since I used RewriteBase, and the documentation isn’t clear on this. For such a simple pair of cases I’d avoid RewriteBase completely to avoid confusion.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a website on Wordpress that requires sort of like a fluid
I am currently developing a website and i need that the pages loads dynamically
I'm currently developing a large site that handles user registrations. A social networking website
I am currently developing a new website and have problems with IE7. First image
I'm currently developing a website which will have heavy load, and a certain amount
I am developing a website using Codeigniter that will have different subdomains for different
The website I am currently developing is handled by a variety of classes that
I have a website say www.livesite.com which is currently running. I have been developing
I'm currently developing a website that should also work on mobile devices. But since
I am currently developing my personal website and part of my site I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.