Jump to content

Recommended Posts

Hello everyone,

 

I am creating a site that has two  modes

1.Default

2.under construction

 

I use database to see weather the site is under construction or not.

 

The template of under construction is different and is stored in a another directory

eg:

site url: www.my.com

under construction page: www.my.com/uc

 

now i want that when the database is selected for under construction the URL should show www.my.com not www.my.com/uc

 

Please help me with this.

 

I tried to redirect with header(location: '.......');

but in the URL it shows www.my.com/uc

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/255602-redirect-page-using-php/
Share on other sites

Don't use header redirects then.  Have the under contructions page be a template or a PHP include.  At the very top of your index, check to see if the site is in maintenance. If it is, include the maintenance template and die.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.