Mod Rewrite Friendly URLs => .htaccess

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scsa20
    Member
    • Feb 2002
    • 60
    • 4.2.x

    #46
    Hmm... I tired both NavS and Matty Asia's codes for the mod rewrites and both gives me the same issue of creating a thread where I get a 404 error page when creating a new thread even though the thread does get created. The ending address is /forums/3-Test-post-2?p=3#post3
    me won't have a signature for a loooooong time

    Comment

    • chriske
      Senior Member
      • Oct 2008
      • 466
      • 5.6.3

      #47
      How can I rewrite the url that it becomes like this:
      forum/f24/vbulletin-t8803.html
      Please vote for:
      - Lightbox for all uploads
      - Attachment permissions for unregistered users

      Comment

      • MattyAsia
        Senior Member
        • Aug 2009
        • 104

        #48
        Originally posted by PitchouneN64ngc
        You can add one more rule. This rule is for the 'Configure' link into the widget manager (admincp).

        Code:
        RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
        This works for me, it could help any other
        I'll check that out when i wake up in the morning and add it if it fits and works

        Comment

        • nubian
          Senior Member
          • Nov 2004
          • 495

          #49
          Hi Matty, I've sent you the class_core.php.
          Hopefully it didn't go into your spam folder.
          Thanks for helping.

          Comment

          • abode
            New Member
            • May 2005
            • 27
            • 4.0.0

            #50
            when i use it the arabic titles shows like -U-U-U-U-U-U-U-U-U-U-U-U-U-U-U-U-U-U

            Comment

            • Dave B
              Senior Member
              • Apr 2001
              • 232

              #51
              I am going to be installing vb in root, where it is currently in /folder/ , how would this be integrated( along with a 301) into this htaccess?

              Comment

              • extremis
                New Member
                • Nov 2009
                • 5
                • 3.8.x

                #52
                MattyAsia, thanks for the code, this is great. Very helpful...

                I notice that even after I've gotten the Mod Rewrite Friendly URLs working, my members' profiles still show up with their user number in the string (i.e. members/1-username). Is there any way to get the user number out and just have: members/username???
                http://www.extremis.com
                http://www.inverted.com

                Comment

                • scsa20
                  Member
                  • Feb 2002
                  • 60
                  • 4.2.x

                  #53
                  Welp, did a few tests and noticed something. Since the vbulletin instation is located in another directory on top of the root it seems to be wanting to go back to the root. Here's what I'm talking about:

                  If you go to the forums and go into a catagory it shows up as /forums/forums/2-Main-Forum in the address bar. Now if you go into a thread it shows up as forums/threads/8-test but after making a thread it tries to take you to /forums/8-test instead of /forums/threads/8-test

                  Is there any kind of fix for this?
                  me won't have a signature for a loooooong time

                  Comment

                  • jörg
                    Banned
                    • Oct 2009
                    • 32
                    • 3.8.x

                    #54
                    Hi,

                    i use the first code and now i cant edit the cms content.......it will show now only a white page

                    and configure the widgets.......is without funktion by a click

                    Comment

                    • jberetta
                      Member
                      • Oct 2009
                      • 73

                      #55
                      Originally posted by jörg
                      Hi,

                      i use the first code and now i cant edit the cms content.......it will show now only a white page

                      and configure the widgets.......is without funktion by a click


                      did you add this to it?

                      Originally posted by PitchouneN64ngc
                      You can add one more rule. This rule is for the 'Configure' link into the widget manager (admincp).

                      Code:
                      RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
                      This works for me, it could help any other

                      This will at least fix the configure part.

                      Comment

                      • jörg
                        Banned
                        • Oct 2009
                        • 32
                        • 3.8.x

                        #56
                        hi,

                        widget works now. thanks.

                        but i cant edit a content-page in the cms . all other works perfect. only the edit-function in the cms will not work, here i become always a blank site

                        Comment

                        • Yves R.
                          vBulletin QA
                          • Nov 2003
                          • 3862
                          • 5.6.X

                          #57
                          Originally posted by MattyAsia
                          I'll check that out when i wake up in the morning and add it if it fits and works
                          Edwin had confirmed it works for him in the bug tracker: http://www.vbulletin.com/forum/proje...enoteid=102695

                          vBulletin QA - vBulletin Support French - Lead Project Tools developer

                          Next release? Soon(tm)

                          Comment

                          • jörg
                            Banned
                            • Oct 2009
                            • 32
                            • 3.8.x

                            #58
                            if i create a new article, then is no problem. i can edit the new article.

                            but the old articles from the last days, we cant edit, if i click on a old article from yesterday as sample -->we become a blank page ^^ but i think is a bug from cms i checked the problem on a second installation theire is the same problem without the .htaccess and standard url´s.........^^
                            Last edited by jörg; Wed 18 Nov '09, 3:50pm.

                            Comment

                            • indigosociety
                              Member
                              • Feb 2009
                              • 52
                              • 3.8.x

                              #59
                              Uh I tried this and I get a 403 forbidden after enabling rewrite in my server and restarting apache. Any ideas?

                              ** fixed by adding Option Follow Sym Links

                              for anyone's reference.
                              Last edited by indigosociety; Thu 19 Nov '09, 1:10am.

                              Comment

                              • indigosociety
                                Member
                                • Feb 2009
                                • 52
                                • 3.8.x

                                #60
                                I see that this doesn't work too well with blogs? Is there even support for rewriting blogs at the moment? I'm going to the blog area and I see stuff like this as the url:

                                blog.php?u=1065

                                And if you click it, it doesn't work (seems to just render what's on blog.php)

                                Shouldn't blog.php be /blogs/

                                I'm guessing vB4 just hasn't coded that in yet?

                                Oh, and tags.php? is also not rewrited yet. What's the status of that?
                                Last edited by indigosociety; Thu 19 Nov '09, 1:30am. Reason: tags.php

                                Comment

                                Related Topics

                                Collapse

                                Working...