access via ip address

Discussion in 'HOWTO-Related Questions' started by rajbps, Apr 16, 2016.

  1. rajbps

    rajbps Member

    Hi Team,
    i got ispconfig 3 installed on a centos7 box.
    I created a client and added his domaina and installed wordpress in on the default url.
    Now the client`s domain as "domain.com" when he goes there he gets the wordpress page.

    He is looking to have a holding page on saying that the site is under constructiona and only access the wordpress site via the external ip untill that is completed then remove the holding page.

    is that possible and if yes how please?

    Regards,

    Raj
     
  2. MaxT

    MaxT Member HowtoForge Supporter

    if your ip is 111.222.333.444, then inside .htaccesss:
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/maintenance.html$
    RewriteCond %{REMOTE_ADDR} !^111.222.333.444
    RewriteRule ^(.*)$ http://www.yourdomain.com/maintenance.html
    
     
  3. rajbps

    rajbps Member

    Will try is there an easier way from ispconfig itself.
    reason is if i get 10 customers doing their websites, i would that to be an automatic process that a manual one
     
  4. rajbps

    rajbps Member

    Hi MaxT,
    Where is the location of .htaccess please?

    Rajbps
     
  5. rajbps

    rajbps Member

    Hi team,

    Anyone has any ideas on this one please?

    Rajbps
     

Share This Page