Jump to content

Redirect Page using Php


killervastu

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

Archived

This topic is now archived and is closed to further replies.

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