Announcement

Collapse
No announcement yet.

mod_rewrite urls and forum path

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

  • [Forum] mod_rewrite urls and forum path

    I have mod_rewrite URLs enabled in my forums via the AdminCP. I'm curious why the forum path includes /forum/forum ??

    When I look at this forum path in the address bar of my web browser, I see:

    PHP Code:
    http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting 
    Why is forum/forum/ in the URL twice? Isn't that redundant....and useless??
    Rob

  • #2
    Vbulletin can't have this forum in the root as the main buying site is there, so they have put it in a folder called "forum" whether it was wise to call the folder "forum" is debatable but they could have called it eg "support" then you would have
    Code:
    [COLOR=#000000][COLOR=#0000BB]http[/COLOR][COLOR=#007700]:[/COLOR][COLOR=#FF8000]//www.vbulletin.com/support/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting[/COLOR][/COLOR]

    Comment


    • #3
      I'm not sure I understand....

      So I have /public_html/forums on my server.

      Yet my forum URLs are all http://www.mysite.com/forums/forums/xxxxxxxxx
      Rob

      Comment


      • #4
        Originally posted by RobAC View Post

        So I have /public_html/forums on my server.
        Yes, you must have changed the "upload" folder to "forums" you could have called it anything you want.

        Comment


        • #5
          Originally posted by donald1234 View Post

          Yes, you must have changed the "upload" folder to "forums" you could have called it anything you want.
          I understand that....but again, my question is, why is /forums/forums/ repeated twice in the URL?

          Rob

          Comment


          • #6
            The second forum is there by default because it is a forum, the first forum is there because you put it there!

            Comment


            • #7
              The software doesn't care what folder it is in, but it appends /forum/ to forums (when you look at one)

              Comment


              • #8
                If you look at the .htaccess for the mod_rewrite URLS, it uses the second /forum/ as the basis for its rewrites.

                Code:
                # Forum
                RewriteRule ^threads/.* showthread.php [QSA]
                RewriteRule ^forums/.* forumdisplay.php [QSA]
                RewriteRule ^members/.* member.php [QSA]
                RewriteRule ^blogs/.* blog.php [QSA]
                RewriteRule ^entries/.* entry.php [QSA]
                Translations provided by Google.

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

                Comment


                • #9
                  Originally posted by Wayne Luke View Post
                  If you look at the .htaccess for the mod_rewrite URLS, it uses the second /forum/ as the basis for its rewrites.

                  Code:
                  # Forum
                  RewriteRule ^threads/.* showthread.php [QSA]
                  RewriteRule ^forums/.* forumdisplay.php [QSA]
                  RewriteRule ^members/.* member.php [QSA]
                  RewriteRule ^blogs/.* blog.php [QSA]
                  RewriteRule ^entries/.* entry.php [QSA]
                  Thank you Wayne. Is that really necessary to use a second /forum/ ?
                  Rob

                  Comment


                  • #10
                    If you want things to route properly, then yes. As the software is written today. I suspect it is envisioned to be running in the root directory of a site as a whole site solution..
                    Translations provided by Google.

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

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X