470,609 Members | 1,300 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,609 developers. It's quick & easy.

How Can i Redirect index page.....

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 2540
I think there is no one expret avaliabe.
Jul 20 '09 #2
8,656 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
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. ?>
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
8,656 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
8,656 Expert Mod 8TB
use a HTML redirect (instead of PHP or Apache)
Jul 20 '09 #8
Thank you Sir .
Jul 21 '09 #9

Post your reply

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

Similar topics

12 posts views Thread by Andrew Chalk | last post: by
3 posts views Thread by Tom | last post: by
1 post views Thread by Andy Todd | last post: by
1 post views Thread by Lionel | last post: by
10 posts views Thread by Big Moxy | last post: by
1 post views Thread by gnawz | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.