473,414 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How Can i Redirect index page.....

luckysanj
Dear Sir,

How can i redirect index page to wwx.site.com/me/index.php.

I have not fineshed front index page work so now i want to redirect this page to my personal information which is located on wwx.site.com/me.

And I inform to user that the index page is under maintenance so this page is redireting to personal information page like wwx.site.com/me.

This all is my own concept so plz clear me that. Is it right method to redirecting index page to sub directories index page.

Thank you.
Jul 19 '09 #1
8 2904
I think there is no one expret avaliabe.
Jul 20 '09 #2
Dormilich
8,658 Expert Mod 8TB
usually, if you don't specify a file (i.e. you specify a directory) the web server loads the current index file (index.html, index.php, ...) or displays a 404 message.

of course you can use your server administration (or .htaccess) to redirect to any specific file you want.
Jul 20 '09 #3
Markus
6,050 Expert 4TB
You might use a header() redirect, although I second Dorm's suggestion of using an .htaccess file.

PHP: (index.php)
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. header("Location: me/index.php"); // or Location: http://fullurl.com/me/index.php
  3. ?>
  4.  
Jul 20 '09 #4
ya but when we redirecting the main index page to like header("Location: me/index.php"); then we inform to user that that main page is redirecting due to under maintenance.

How can i do this?
Jul 20 '09 #5
Dormilich
8,658 Expert Mod 8TB
in HTML you would prepare the appropriate message in the page and use
Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="refresh" content="_time_in_seconds_;url=_destination_url_">
Jul 20 '09 #6
I can't understand what you have told.
Jul 20 '09 #7
Dormilich
8,658 Expert Mod 8TB
use a HTML redirect (instead of PHP or Apache)
Jul 20 '09 #8
Thank you Sir .
Jul 21 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Andrew Chalk | last post by:
In a Python script running under CGI, can I programatically redirect the program to another page. Assume that I have a static HTML page that I want displayed (e.g. index.htm). Other than 'print...
3
by: Mr B | last post by:
Howdy all, I have 2 domain names that both go to the same website. For example, if www.XXXX.com is the primary name for the website, if you type in www.XXXX.com or www.YYYY.com, they both go...
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
1
by: Andy Todd | last post by:
Hi We have just moved an ASP.NET application into the live environment which is as follows: Sun Proxy Server / Firewall Windows 2000 Server / IIS5 The URL for the site maps to the Sun...
1
by: Lionel | last post by:
Hi, I've a VB .Net web app (for example foo) on an internal server. In the intranet we can access this application like this : http://myserver/foo/index.aspx. Now we want to make this...
7
by: savvy | last post by:
I able to redirect the user to the index.aspx page after every successful login, but I dont want certain pages outside the folder to have a access to general public. So if they click that...
10
by: Big Moxy | last post by:
I want to redirect the user back to the home page after submitting their form inquiry and display a message on the home page. I tried this in my send mail (apply.php) file - $_SESSION == "Thank...
0
by: peanutgnome | last post by:
Folks, looking for a little guidance on an .htaccess redirect problem - I'm a bit of a newbie when it comes to the rewriting of urls... We've changed from one CMS to another on our company...
1
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.