Announcement

Collapse
No announcement yet.

"index.php?" Is this an error? How do I get rid of it?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "index.php?" Is this an error? How do I get rid of it?

    My home page shows up with "index.php?" after the domain name once you click anywhere and then click on the home page. Is this an error? Is there any way to correct this and have it just show the domain name minus the "index.php?"?


    I want
    http://www.garagejunkies.net to show up as opposed to http://www.garagejunkies.net/index.php?

    Thanks.
    Last edited by luckydevil; Wed 13 Apr '05, 9:36pm.
    - Luke
    www.GarageJunkies.net

  • #2
    Originally posted by luckydevil
    My home page shows up with "index.php?" after the domain name once you click anywhere and then click on the home page. Is this an error? Is there any way to correct this and have it just show the domain name minus the "index.php?"?


    I want
    http://www.garagejunkies.net to show up as opposed to http://www.garagejunkies.net/index.php?

    Thanks.
    I just went there and it shows http://www.garagejunkies.net/ in the address bar. It is CALLING "index.php" so that may appear in some links and browsers as that is where you are actually going - same with "index.html" pages SOmetimes it shows the index page and other times not.

    I loaded yours in both FIrefix and Maxthon and the index.php didn't whow in the address bar UNLESS I used the full link that you provided THEN it DID show

    THe only time I ever felt the need to use the index.php in the link was when I was first building the forums and had an index.html file in the root also. In that case the index.php was needed as, unless told otherwise a browser will grab index.html first
    Rick Grunwald
    http://grunwalds.com
    XP home SP2, Celeron 2gb, 2GB RAM, Zone Alarm Security Suite

    Comment


    • #3
      I totally agree with the suggestion. It would be good for SEO purposes to only have one URL for the main page instead of two.

      Comment


      • #4
        thanks for the responses.

        How do I make only one url for the main page? What did you guys mean buy that?
        - Luke
        www.GarageJunkies.net

        Comment


        • #5
          Originally posted by luckydevil
          thanks for the responses.

          How do I make only one url for the main page? What did you guys mean buy that?
          http://www.garagejunkies.net/ works just fine - you don't need the "index.php" in the address as long as there is no "index.html" or .htm in the same directory

          I get teh exact same page whether I use the link with "index.php" or the one quoted above the only difference being the one above appears exactly as it is types (no index.php) in the address bar and if I access with the full path including index.php only THEN does index.php appear in the address bar.

          Am I understanding the issue correctly? If so http://www.garagejunkies.net/ is all you need to promote - it works fine. BTW I have a similar issue where the actual name of a module can appear in the address bar at times but not always. It creates no problems though
          Rick Grunwald
          http://grunwalds.com
          XP home SP2, Celeron 2gb, 2GB RAM, Zone Alarm Security Suite

          Comment


          • #6
            Rick Grunwald: You obviously don't understand what he's saying. He wants only one URL for that page, he is not asking if two URLs cause problems.

            luckydevil: I would imagine it being rather difficult, because you would have to edit all sorts of templates and files. Maybe try asking this at vbulletin.org ?

            Comment


            • #7
              Hmm. I wonder if setting the forum home file to blank in the config would do this.

              [Edit]That setting does not include the .php . I investigated and found that if you do a search and replace (from find in templates) to find
              $vboptions[forumhome].php
              and replace it with the absolute path to your forums ("/" if you're opperating out of the root directory, "/forum/" or "/forums/" for most people), you should get the effect you desire. Note that it would be prudent to back up your styles before you do this, incase unexpected results arise. Also, this change would leave the links in the admin cp unchanged, but that does not effect your visitors.[/edit]
              Last edited by WetWired; Fri 15 Apr '05, 5:32am.
              http://www.zelaron.com/sigs/rotsig.gif

              Comment


              • #8
                Thanks for the help guys. I guess I'll just leave it alone as it sounds like more of a hassle than it is worth to change it.

                The reason I was wanting to change it was because other people were linking to the site using the domain name and "index.php?" when I knew it wasn't needed. They just happen to copy what was in the browser. No biggie though.

                Thanks again!
                - Luke
                www.GarageJunkies.net

                Comment


                • #9
                  Originally posted by Icheb
                  Rick Grunwald: You obviously don't understand what he's saying. He wants only one URL for that page, he is not asking if two URLs cause problems.
                  Huh? It isn't "2 urls" - they are both loading index.php in this case - one is a fully qualified path and file name the other is letting the server find the index file. I had the forums up before I was ready to delete an HTML only site -thus I left "index.html" in the root and you had to add "index.php" to get to the forums (actually the portal). This was temporary during a testing period

                  You are offering SEO advice so please correct me if I again obviously misunderstand something
                  (Leaving the ability to limit file and directory access for the moment) If you are submitting to search engines you will submit your domain(s) NOT specifically pages such as index.php.

                  Spiders will crawl all available pages and links INCLUDING thise with names like "index.php" if they are not specifically blocked

                  What I was telling luckydevil is that it is NOT 2 urls. Wetwired was the only one that gave him possibly good advice as to how to fix the percieved problem.

                  As I said, I checked the links and I checked his site for the behavior he was describing. I checked my site too and get similar behavior
                  http://www.yourhtmlsource.com/javasc...favorites.html has some code for adding an "add to favorites" button - the second option lets you add another website to favorites rather than the one you are on (one without index.php?)

                  I don't see where it will make a problem unless one decides to dump all php from their site perhaps going back to straight html - then the issue would be to add a redirect into the remaining index.php file to take care of anyone that bookmarked index.php specifically. A specially constructed 404 would do also in this slightly far-fetched scenario
                  Rick Grunwald
                  http://grunwalds.com
                  XP home SP2, Celeron 2gb, 2GB RAM, Zone Alarm Security Suite

                  Comment


                  • #10
                    Is it "2 URLs"? Yes. An URL is simply the address of the page, the content doesn't matter. You can point 2.000 URLs so the same page if you so desire.
                    Do both URLs show the same content? Yes.
                    Does it matter? Yes, I'm afraid so.
                    It's not about whether search engines will spider the pages, it's about how they (specifically Google) weigh the importance of the pages. Some links will go to /forum/, some will go to /forum/index.php, which will split the weight and that is not desirable, nothing else.

                    The reason why you couldn't access your index.php without specifying the name directly when you still had an index.html file in your directory was because your Directory Index directive in your httpd.conf gave index.html precendence over index.php . I really have no idea why you bring this up at all btw.

                    And yes, I am "offering SEO advice", because as stated above having multiple URLs for the same page results in reduced weight for each URL instead of having all that weight concentrated on one URL. Why am I saying this? I would love to see it in a future vB version that only one URL points to the main page because it would have more weight in Google (aka. Pagerank) that way.

                    And no, I never submitted my sites to search engines and yet my sites are still indexed. Any search engine that knows what it is doing will find your site on its own as long as other sites point to it. Even a simple link in a forum signature will suffice for this.

                    Comment


                    • #11
                      Another possible solution would be to create a different default document with a "page has moved" redirect to index.php.
                      http://www.zelaron.com/sigs/rotsig.gif

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X