How Can i Redirect index page.....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luckysanj
    New Member
    • May 2009
    • 68

    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.
    Last edited by Markus; Jul 20 '09, 12:14 PM. Reason: Removed outward links.
  • luckysanj
    New Member
    • May 2009
    • 68

    #2
    I think there is no one expret avaliabe.

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      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.

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        You might use a header() redirect, although I second Dorm's suggestion of using an .htaccess file.

        PHP: (index.php)
        Code:
        <?php
        header("Location: me/index.php"); // or Location: http://fullurl.com/me/index.php
        ?>

        Comment

        • luckysanj
          New Member
          • May 2009
          • 68

          #5
          ya but when we redirecting the main index page to like header("Locatio n: me/index.php"); then we inform to user that that main page is redirecting due to under maintenance.

          How can i do this?

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            in HTML you would prepare the appropriate message in the page and use
            Code:
            <meta http-equiv="refresh" content="[B]_time_in_seconds_[/B];url=[B]_destination_url_[/B]">

            Comment

            • luckysanj
              New Member
              • May 2009
              • 68

              #7
              I can't understand what you have told.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                use a HTML redirect (instead of PHP or Apache)

                Comment

                • luckysanj
                  New Member
                  • May 2009
                  • 68

                  #9
                  Thank you Sir .

                  Comment

                  Working...