Mod Rewrite Friendly URLs => .htaccess

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spiderweb
    Senior Member
    • Jun 2003
    • 554
    • 5.5.x

    I get nothing but 404 errors on all url's when I try to turn this on. Apache restarts with no errors and rewrite is functioning.

    In file: /etc/apache2/sites-enabled/sneaker-groups.com
    2: <VirtualHost *:80>
    20: RewriteEngine On
    25: RewriteRule ^includes/(.*) index.php
    26: RewriteRule ^vb/(.*) index.php
    27: RewriteRule ^packages/(.*) index.php
    31: RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    32: RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    33: RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    34: RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    35: RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    36: RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    37: RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    38: RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
    : </VirtualHost>

    Comment

    • Antes
      New Member
      • Dec 2009
      • 8
      • 3.8.x

      thx looking nice , awsomely working - is something about TAGs ?

      /tags/{tagname} ?
      Just a little admin MMOBrowser Forum
      also i love translating :) just guide me

      Comment

      • teamsport90
        Senior Member
        • Mar 2009
        • 106
        • 3.8.x

        I'm getting an issue with blog categories. I can choose the category from the main blog page (i.e ./blog.php) and it links fine but when I choose a blog category from a members page I get a 404. I've submitted a bug report here but I think it could be the mod rewrite as it works when I change to advanced friendly urls.
        Don't forget to thank your helpers by clicking on the http://www.vbulletin.com/forum/image...tation-40b.png icon in the post footer!

        TeamSport90.com Grass Roots Football Forum
        TeamSport90.com Football Kits

        Comment

        • lucky89
          Senior Member
          • Oct 2006
          • 135
          • 4.2.X

          What's the diference between this one and the .htaccess provided by vbulletin?

          Comment

          • Green Cat
            Senior Member
            • May 2008
            • 493
            • 3.8.x

            Originally posted by lucky89
            What's the diference between this one and the .htaccess provided by vbulletin?
            In early betas vB did not provide a .htaccess.

            Comment

            • jhabers
              Senior Member
              • Nov 2009
              • 125
              • 4.0.0

              Has anyone gotten this working with 1and1.com hosting? I am getting 500 errors
              Maxum Boat Forum / Computer Repair Cary NC

              Comment

              • wIrEs
                New Member
                • Dec 2006
                • 19
                • 4.0.0

                rules in 1st post are working for me, just one thing, when i try to visit: www.my-site.com ...i also get: www.my-site.com/content/1-home ,, any ideas how to remove content/1-home when i try to visit the front page ?

                Comment

                • Bergler
                  Senior Member
                  • Dec 2006
                  • 560

                  Hey all, I have tried all different variations and cant seem to get it to work with my live site. Allthough I have a test site on another domain and this one worked great,
                  Code:
                  RewriteEngine on
                  
                  # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
                  # RewriteBase /forum/
                  
                  RewriteCond %{REQUEST_FILENAME} -s [OR]
                  RewriteCond %{REQUEST_FILENAME} -l [OR]
                  RewriteCond %{REQUEST_FILENAME} -d
                  
                  RewriteRule ^.*$ - [NC,L]
                  
                  RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
                  RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
                  RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
                  RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
                  RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
                  
                  RewriteCond %{REQUEST_FILENAME} -s [OR]
                  RewriteCond %{REQUEST_FILENAME} -l [OR]
                  RewriteCond %{REQUEST_FILENAME} -d
                  
                  RewriteRule ^.*$ - [NC,L]
                  
                  RewriteRule ^(?:(.*?)/)(.*)$ $1.php?r=$2&%{QUERY_STRING}
                  It just wont work on my Live site.

                  It does work on the threads but not on the forums??

                  Comment

                  • Bergler
                    Senior Member
                    • Dec 2006
                    • 560

                    Any one have any tips or suggestions? I really want to get this working. Cheers

                    Comment

                    • rossco_2005
                      Senior Member
                      • Apr 2005
                      • 465
                      • 4.1.x

                      Originally posted by Bergler
                      Any one have any tips or suggestions? I really want to get this working. Cheers
                      There is a htaccess file included with vb4 gold...
                      Look in the do_not_upload folder, I think it's do_not_upload/rewrite/apache/.htaccess.
                      If you're using IIS then look in the IIS folder instead of apache.

                      http://filesharingtalk.com

                      Comment

                      • Bergler
                        Senior Member
                        • Dec 2006
                        • 560

                        Originally posted by rossco_2005
                        There is a htaccess file included with vb4 gold...
                        Look in the do_not_upload folder, I think it's do_not_upload/rewrite/apache/.htaccess.
                        If you're using IIS then look in the IIS folder instead of apache.
                        Is ISS a windows server? The file I posted above worked on my test server, on the same system, just a different domain. I have also used the one in the do_not_upload folder same thing.
                        Last edited by Bergler; Sat 26 Dec '09, 7:51pm.

                        Comment

                        • thedudleys
                          New Member
                          • Feb 2008
                          • 26

                          im lost as to why this won't work when the server has the mod rewrite enabled cause the other forum(3.8 that someone else owns) on it has vbseo and its working fine but not this, any really big ideas? im /forums/forums/thread information when trying it with anything mentioned.

                          Comment

                          • Skyrider
                            Senior Member
                            • Feb 2006
                            • 540

                            I was hoping someone could help me... Everytime I check a section, I'm getting /forum/, EG:

                            xxxxxx.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, xxxxxx.com has it all. We hope you find what you are searching for!


                            Can I change the /forum/ in the end and or remove it? It doesn't fit with a http://forum.x subdomain.

                            Comment

                            • iyama
                              New Member
                              • Dec 2009
                              • 27
                              • 4.2.X

                              I'm getting this: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. In the browser.

                              info:
                              Shared server
                              htacces 1.6 used
                              Placed file in www.myforum.info/forum and on www.myforum.info directory
                              VB The Next Social Media plugin!
                              I don't buy VB5!

                              Comment

                              • wIrEs
                                New Member
                                • Dec 2006
                                • 19
                                • 4.0.0

                                thank you for adding the widget rule.

                                Comment

                                Related Topics

                                Collapse

                                Working...