Announcement

Collapse
No announcement yet.

Mod Rewrite Friendly URLs => .htaccess

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


    • 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


      • 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


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

          Comment


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

            Comment


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

              Comment


              • 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


                • 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


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

                    Comment


                    • Originally posted by Bergler View Post
                      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


                      • Originally posted by rossco_2005 View Post
                        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 26th Dec '09, 8:51pm.

                        Comment


                        • 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


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

                            http://forum.xxxxx.com/forums/4-ESF-Chat

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

                            Comment


                            • 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


                              • thank you for adding the widget rule.

                                Comment

                                Related Topics

                                Collapse

                                Working...
                                X