#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    Nova Scotia, Canada
    Posts
    27
    Rep Power
    0

    How does Google treat redirects?


    For anything deeper than the first level of my site, I want to use 'home.php' as the main page rather than 'index.php', so I plan to use the following redirect method for all 'index' pages:

    PHP Code:
    <?php header('Location: http://mydomain/foo/home.php'); ?>
    Will Google not like me for that?
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    Google probably won't care much, but you'd be better off just configuring the web server to serve home.php as the index page - saves you the trouble of having to create a bunch of redirect files.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Location
    Nova Scotia, Canada
    Posts
    27
    Rep Power
    0
    Cool. I'll do exactly that.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    20
    Rep Power
    0
    I also agree with E-Oreo.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    17
    Rep Power
    0
    Great work !!!! really good idea.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2014
    Posts
    18
    Rep Power
    0
    Same thing i also do.

IMN logo majestic logo threadwatch logo seochat tools logo