Need help with HTACCESS. Might site is jacked up!

Discussion in 'Apache' started by lithman, Aug 23, 2007.

  1. #1
    I'm trying to fix my site http://www.layoutpimps.net It is so weird

    for example.

    http://www.layoutpimps.net/friends does work
    http://www.layoutpimps.net/friends/index.php reroutes back to the homepage
    http://www.layoutpimps.net/friends/ reroutes back to the homepage

    Currently, I have this in my htaccess
    ErrorDocument 404 /index.php

    so thats why http://www.layoutpimps.net/friends/ reroutes back to the homepage.

    This site is a complete mess in Google's eyes. Why is it if you add a / or a /index.php are the URLs considered 404 errors?

    All three of those links need to go to the same place and be considered the same URL.

    Is there anything I can add to my htaccess to fix this problem? It does it to all my URLs and it's been like this for a year! I just now noticed it.
     
    lithman, Aug 23, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Mess in google's eyes? - And who do you think is creating this mess? :)

    Alright, first off:
    Why in the world would you make index.php your 404 error page? That has disaster written all over it.
    Create error404.php, stuff your html in there and point to it in htaccess

    As for the urls
    This
    http://www.layoutpimps.net/friends
    and this
    http://www.layoutpimps.net/friends/
    are the same thing, leave it alone

    As for
    http://www.layoutpimps.net/friends/index.php
    The only way people will link to this index page, is if you do it
    So don't do it :)

    And you're done, no need to over-complicate things
     
    cyanide, Aug 24, 2007 IP