domain root keeps redirecting to forum.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mermaid
    Senior Member
    • Mar 2008
    • 761
    • 3.6.x

    [Forum] domain root keeps redirecting to forum.php

    All of my pages are in the root directory

    My CMS page should be http://domain.com, but it keeps redirecting to the forum, http://domain.com/forum.php

    I have navigation manager set so Articles tab is http://domain.com/ (default)

    Admin CP>Options>Content management, URL is set to http://domain.com/

    What am I doing wrong please?
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    What is in your index.php file? Is it set to redirect to forum.php or content.php?

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    • Mermaid
      Senior Member
      • Mar 2008
      • 761
      • 3.6.x

      #3
      Originally posted by Lynne
      What is in your index.php file? Is it set to redirect to forum.php or content.php?

      I don't know. What does that mean and where do I find it?

      But, I discovered it was only like this with Safari, which is now OK after emptying cache.

      But there is another problem

      The home page was now http://domain.com/content.php instead of just http://domain.com/

      So after setting the navigation manager for articles to http://domain.com/ the tab would not be selected, the forum tab stays selected.

      Comment

      • Skyrider
        Senior Member
        • Feb 2006
        • 540

        #4
        index.php file is located in the root of your vBulletin installation which can be found using FTP and or file browser if your host control panel has one. You can edit the file using notepad and or any "notepad" viewer software.

        Comment

        • Mermaid
          Senior Member
          • Mar 2008
          • 761
          • 3.6.x

          #5
          Originally posted by Skyrider
          index.php file is located in the root of your vBulletin installation which can be found using FTP and or file browser if your host control panel has one. You can edit the file using notepad and or any "notepad" viewer software.
          Aha, found it. But I don't understand the instructions:

          * If you want to move this file to the root of your website, change the
          * line below to your vBulletin directory and uncomment it (delete the //).
          The file is already in the root of the directory, so is the forum. So how do I change it?

          * For example, if vBulletin is installed in '/forum' the line should
          * state: define('VB_RELATIVE_PATH', 'forums');
          vBulletin is installed in the root, do I still need to edit it?

          I find this very confusing.

          Comment

          • Skyrider
            Senior Member
            • Feb 2006
            • 540

            #6
            Lynne was referring to this:
            require('forum.php');
            It was possible that this was showing for you:

            require('content.php');
            // require('forum.php');
            vBulletin use(d) 2 files within index.php

            forum.php which loads the forums directly. And content.php which loads the CMS + the forums being in the navbar.

            Lynne was wondering which file is being used in index.php, either content.php or forum.php. Though I'm confused why Lynne is asking this seeing in vB 4.2 content.php no longer exists in index.php and it always uses forum.php thus always loads up the forums first which of course can be managed through the Navigation Manager which you already tried.

            Mermaid, make sure that content.php is set to default and if that fails.. try something else to see if it works. Edit your index.php file and you should see this:

            require('forum.php');
            change it to:

            require('content.php');
            save, reload the page and check again. Just to see if it works and you can always change it back to forum.php later.
            Last edited by Skyrider; Thu 31 May '12, 10:03am.

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 74111

              #7
              Upload the unmodified index.php file from your vBulletin 4.2.0 package.

              Do NOT Edit the index.php file in 4.2.0. Use the Navigation Manager to set the default.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • Mermaid
                Senior Member
                • Mar 2008
                • 761
                • 3.6.x

                #8
                Originally posted by Wayne Luke
                Upload the unmodified index.php file from your vBulletin 4.2.0 package.

                Do NOT Edit the index.php file in 4.2.0. Use the Navigation Manager to set the default.
                I didn't edit it.

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 74111

                  #9
                  Originally posted by Mermaid
                  I didn't edit it.
                  Just a warning because other people are saying to edit it. Index.php points to forum.php. Forum.php redirects to the tab you want to be the default tab. If you set the default tab to Forums than it will stay on forum.php and load the forum list.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • Mermaid
                    Senior Member
                    • Mar 2008
                    • 761
                    • 3.6.x

                    #10
                    Originally posted by Wayne Luke
                    Just a warning because other people are saying to edit it. Index.php points to forum.php. Forum.php redirects to the tab you want to be the default tab. If you set the default tab to Forums than it will stay on forum.php and load the forum list.
                    OK thanks.

                    (It's odd though that when you open index.php, it says you can edit edit it)

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 74111

                      #11
                      Originally posted by Mermaid
                      OK thanks.

                      (It's odd though that when you open index.php, it says you can edit edit it)
                      yeah... I noticed that as well.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • Lynne
                        Former vBulletin Support
                        • Oct 2004
                        • 26255

                        #12
                        Originally posted by Skyrider
                        Though I'm confused why Lynne is asking this seeing in vB 4.2 content.php no longer exists in index.php and it always uses forum.php thus always loads up the forums first which of course can be managed through the Navigation Manager which you already tried.
                        I was wondering if she *had* edited it like some people have been saying to do.

                        Please don't PM or VM me for support - I only help out in the threads.
                        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                        Want help modifying your vbulletin forum? Head on over to vbulletin.org
                        If I post CSS and you don't know where it goes, throw it into the additional.css template.

                        W3Schools <- awesome site for html/css help

                        Comment

                        • Paul M
                          Former Lead Developer
                          vB.Com & vB.Org
                          • Sep 2004
                          • 9886

                          #13
                          Originally posted by Mermaid
                          OK thanks.

                          (It's odd though that when you open index.php, it says you can edit edit it)
                          It actually says
                          // Do not edit anything below //
                          You can edit the relative path, but thats only necessary if you move the index.php file to some other location.
                          Baby, I was born this way

                          Comment

                          • Gumble
                            Senior Member
                            • Sep 2008
                            • 352
                            • 4.0.0

                            #14
                            Paul the problem I found is no matter what we change the CMS render as domain.com/content/ on test board I was able to make it domain.com with the index edit only.

                            Think the main problem some people are getting is just to have the link rendered without the /content/

                            Comment

                            • Paul M
                              Former Lead Developer
                              vB.Com & vB.Org
                              • Sep 2004
                              • 9886

                              #15
                              Originally posted by Gumble
                              Paul the problem I found is no matter what we change the CMS render as domain.com/content/ on test board I was able to make it domain.com with the index edit only.
                              Ive read this a few times and I honestly dont understand it.

                              Originally posted by Gumble
                              Think the main problem some people are getting is just to have the link rendered without the /content/
                              Its not designed to do that.
                              The whole point of the facility to set any page as the default (in NavMan) is that it will redirect you to that page.
                              The only time is wont (well shouldnt) is if you set the forumhome (forum.php) as the default, however, it will atm because its not ignoring the session variable when it checks.
                              Baby, I was born this way

                              Comment

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