Change the URLs on the Forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JARNAR
    New Member
    • Apr 2017
    • 24
    • 4.2.x

    Change the URLs on the Forum

    Hi, I want to change the URLs.

    Currently URLs are follows (example):

    http://mysite.it/forumdisplay.php/7-Regolamento

    I would remove the "forumdisplay.php" and change it to: http://mysite.it/forum/Regolamento

    Or this:

    http://mysite.it/forumdisplay.php/11-Alimentazione-e-Nutrizione

    Change it to: http://mysite.it/forum/Alimentazione-e-Nutrizione

    Only "forum/section" and not forumdisplay.php /number+section

    Can you help me, please?

    Sorry for my english, I'm Italian
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    There are options to change your URLs in the AdminCP under Settings -> Options -> Friendly URLS. The options are:
    • Standard URLs:
      showthread.php?t=12345
    • Basic Friendly URLs:
      showthread.php?1234-Thread-Title
    • Advanced Friendly URLs:
      showthread.php/1234-Thread-Title
    • Mod Rewrite Friendly URLs:
      threads/1234-Thread-Title

    Anything outside this would require custom coding.
    Translations provided by Google.

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

    Comment

    • JARNAR
      New Member
      • Apr 2017
      • 24
      • 4.2.x

      #3
      Originally posted by Wayne Luke
      There are options to change your URLs in the AdminCP under Settings -> Options -> Friendly URLS. The options are:
      • Standard URLs:
        showthread.php?t=12345
      • Basic Friendly URLs:
        showthread.php?1234-Thread-Title
      • Advanced Friendly URLs:
        showthread.php/1234-Thread-Title
      • Mod Rewrite Friendly URLs:
        threads/1234-Thread-Title

      Anything outside this would require custom coding.
      Thanks Wayne,

      I followed the path that you told me: AdminCP under Settings -> Options -> Friendly URLS, and I selected the option:
      • Mod Rewrite Friendly URLs:
        threads/1234-Thread-Title
      But no longer see the forums. How do I rewrite them as I want?

      Comment

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

        #4
        Did you upload the rewrite file for your server? You can find them in the /do_not_upload/rewrite directory. Most people use Apache so would use the appropriate .htaccess file.
        Translations provided by Google.

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

        Comment

        • JARNAR
          New Member
          • Apr 2017
          • 24
          • 4.2.x

          #5
          Originally posted by Wayne Luke
          Did you upload the rewrite file for your server? You can find them in the /do_not_upload/rewrite directory. Most people use Apache so would use the appropriate .htaccess file.

          Ok, I found the .htaccess file, in do_not_upload / rewrite / apache2 / .htaccess

          Where do I upload it to the server? In Which folder?

          Comment

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

            #6
            Whichever folder your vBulletin is installed in.
            Translations provided by Google.

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

            Comment

            • JARNAR
              New Member
              • Apr 2017
              • 24
              • 4.2.x

              #7
              Originally posted by Wayne Luke
              Whichever folder your vBulletin is installed in.
              Hi Wayne,

              Ok, I have put the file .htacess in my server root. Now how I can rewrite the URLs???

              I have just enabled the rewrite mode in Settings > Options > Friendly URLs > Friendly URLs Rewrite Mode
              Last edited by JARNAR; Sun 23 Apr '17, 9:23pm.

              Comment

              • Mark.B
                vBulletin Support
                • Feb 2004
                • 24286
                • 6.0.X

                #8
                That should be all that is required.
                If it is not working, you'll need to check the following on your server:

                1. Check that mod_rewrite is enabled.
                2. Check that allow_override is set to all.

                You will probably need to speak to your host to get this checked.
                MARK.B
                vBulletin Support
                ------------
                My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                Comment

                • JARNAR
                  New Member
                  • Apr 2017
                  • 24
                  • 4.2.x

                  #9
                  Originally posted by Mark.B
                  That should be all that is required.
                  If it is not working, you'll need to check the following on your server:

                  1. Check that mod_rewrite is enabled.
                  2. Check that allow_override is set to all.

                  You will probably need to speak to your host to get this checked.
                  Fixing this then work my "content.php"? (close thread: https://www.vbulletin.com/forum/foru...on-this-server )

                  Comment

                  • Mark.B
                    vBulletin Support
                    • Feb 2004
                    • 24286
                    • 6.0.X

                    #10
                    It's the same issue, so yes.
                    MARK.B
                    vBulletin Support
                    ------------
                    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                    Comment

                    • JARNAR
                      New Member
                      • Apr 2017
                      • 24
                      • 4.2.x

                      #11
                      Originally posted by Mark.B
                      It's the same issue, so yes.
                      Ok Mark, where do I find these files?


                      1. Check that mod_rewrite is enabled.
                      2. Check that allow_override is set to all.

                      Comment

                      • Mark.B
                        vBulletin Support
                        • Feb 2004
                        • 24286
                        • 6.0.X

                        #12
                        Originally posted by JARNAR

                        Ok Mark, where do I find these files?


                        1. Check that mod_rewrite is enabled.
                        2. Check that allow_override is set to all.
                        Unless you're running your own server, these are things you should ask your host.
                        They are not vBulletin settings, they are part of the server configuration.

                        mod_rewrite is an Apache module, allow_override is set in the apache2.conf file and Apache will need restarting if this is changed.
                        MARK.B
                        vBulletin Support
                        ------------
                        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                        Comment

                        • JARNAR
                          New Member
                          • Apr 2017
                          • 24
                          • 4.2.x

                          #13
                          Originally posted by Mark.B

                          Unless you're running your own server, these are things you should ask your host.
                          They are not vBulletin settings, they are part of the server configuration.

                          mod_rewrite is an Apache module, allow_override is set in the apache2.conf file and Apache will need restarting if this is changed.
                          I asked my host, I will let you know

                          Comment

                          • JARNAR
                            New Member
                            • Apr 2017
                            • 24
                            • 4.2.x

                            #14
                            Okay, I'am approaching at the problem.

                            My "content section" (content.php) does not work only when I set in rewrite mode, it does not matter, the .htaccess file.

                            After I've set in rewrite mode, I had to reinstall Chrome to see the content.php section, otherwise even if I set the friendly URLs does not see ugual..

                            Is it always the same hosting problem? Or can it be solved in another way?
                            Last edited by JARNAR; Thu 27 Apr '17, 1:48pm.

                            Comment

                            • Mark.B
                              vBulletin Support
                              • Feb 2004
                              • 24286
                              • 6.0.X

                              #15
                              Originally posted by JARNAR
                              Okay, I approaching at the problem.

                              My "content section" (content.php) does not work only when I set in rewrite mode, it does not matter, the .htaccess file.

                              After I've set in rewrite mode, I must to reinstall Chrome to see the content.php section, otherwise even if I set the friendly URLs does not see ugual..

                              Is it always the same hosting problem? Or can it be solved in another way?
                              Have you asked your host about mod_rewrite and allow_override?

                              We can't easily move forward with this until those questions are answered.
                              MARK.B
                              vBulletin Support
                              ------------
                              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                              Comment

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