• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • mod rewrite question

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Page 1 of 2 12 Next LastLast
    Results 1 to 15 of 22

    Thread: mod rewrite question

    • Thread Tools
      • Show Printable Version
    1. February 26, 2011 #1
      ashley76
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ashley76 is offline
      Regular Member
      Join Date
      February 12, 2011
      Posts
      49
      Rep Power
      162

      mod rewrite question

      when I click generate for the .htaccess code the only thing that generates is the following

      Code:
      RewriteEngine On
      RewriteBase /
      I know that can't be it because it isn't telling anything rewrite stuff.

      What am I missing?
      Reply With Quote Reply With Quote

    2. February 27, 2011 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      The Rewrite Generator bases its output on Settings > Options > VaultWiki: Server Settings. If you haven't changed these, then there is no rewrite needed.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. February 27, 2011 #3
      ashley76
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ashley76 is offline
      Regular Member
      Join Date
      February 12, 2011
      Posts
      49
      Rep Power
      162
      I really want something like this though...

      Before - http://www.kordindustries.com/showwi...se_Classics_14
      After - http://www.kordindustries.com/wiki/Z...se_Classics_14
      Reply With Quote Reply With Quote

    4. February 27, 2011 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      This is possible. Before the Rewrite Generator can give you the rules for this, you need to make the necessary changes to Settings > Options > VaultWiki: Server Settings.

      Change the Wiki File Name to "wiki", and turn Simple URLs on.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. February 27, 2011 #5
      ashley76
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ashley76 is offline
      Regular Member
      Join Date
      February 12, 2011
      Posts
      49
      Rep Power
      162
      so when I enable simple URLs it breaks all the links. I get invalid forum.
      Reply With Quote Reply With Quote

    6. February 28, 2011 #6
      tagman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      tagman is offline
      Junior Member
      Join Date
      February 5, 2011
      Posts
      27
      Rep Power
      160
      Not to hijack the thread or anything but I have the same issue. I turned on simplify wiki links and inserted the corresponding code from the re-write generator into my .htaccess file but I am only getting "Invalid Forum specified" errors when navigating to the wiki. I know mod re-write works because I have vbseo installed and working.


      Here is the code the re-write generator had me put in my .htaccess file.

      Place the following in http://www.mywebsite.org/.htaccess
      Code:
      RewriteEngine On
      RewriteBase /
      
      RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/Field+Guide:(.*)$ showwiki/$1 [L,R=301]
      
      RewriteRule ^showwiki$ showwiki/ [L,QSA,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA]
      In order to avoid a potential conflict with vBSEO, you should make the following changes to the same file.
      Find
      Code:
      RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
      Replace
      Code:
      RewriteCond %{REQUEST_URI} !showwiki_proxy.php
      RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

      Maybe there is something simple we are missing to get this to work properly?
      Reply With Quote Reply With Quote

    7. February 28, 2011 #7
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      If you are getting invalid forum specified, then vBSEO is still hijacking the URLs. The first code box you posted should be placed above ALL rules that point to vBSEO.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. February 28, 2011 #8
      ashley76
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      ashley76 is offline
      Regular Member
      Join Date
      February 12, 2011
      Posts
      49
      Rep Power
      162
      Totally confused now. My "generate" doesn't give me anything, but what I posted initially. I too have vbseo installed on my site. Any other ideas?
      Reply With Quote Reply With Quote

    9. February 28, 2011 #9
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      Like I've said, you need to change VaultWiki: Server Settings to your desired settings before you run the generator. Yes, this will break all links, because your server doesn't have the rewrite rules for the settings you entered. After changing the settings, go to the generator, and it will give you the rules to fix the links.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    10. February 28, 2011 #10
      tagman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      tagman is offline
      Junior Member
      Join Date
      February 5, 2011
      Posts
      27
      Rep Power
      160
      Man, I'm so close to getting this! Really wish I knew more about .htaccess. I had a really hard time getting vbseo working the way I wanted because .htaccess was giving me trouble. Anyhow, I moved the vaultwiki rewrite rules above all the vbseo rules as you said. I can now acces my wiki. I can see the special pages and books and categories, but now when I try to go to a specific page I get a 500 server error.

      For instance, I can now see http://www.pwckitsap.org/showwiki/Special:Allpages but when I click on one of the pages listed, I get the error.

      Here is my .htaccess. Maybe you can see what I've done wrong?

      Code:
      # Comment the following line (add '#' at the beginning)
      # to disable mod_rewrite functions.
      # Please note: you still need to disable the hack in
      # the vBSEO control panel to stop url rewrites.
      RewriteEngine On
      
      # Some servers require the Rewritebase directive to be
      # enabled (remove '#' at the beginning to activate)
      # Please note: when enabled, you must include the path
      # to your root vB folder (i.e. RewriteBase /forums/)
      RewriteBase /
      
      Options -MultiViews
      
      RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/Field-Guide:(.*)$ showwiki/$1 [L,R=301]
      
      RewriteRule ^showwiki$ showwiki/ [L,QSA,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA]
      
      #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
      #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
      
      RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
      
      RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
      
      RewriteCond %{REQUEST_URI} !showwiki_proxy.php
      RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
      RewriteRule ^(.+)$ vbseo.php [L,QSA]
      
      RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
      Reply With Quote Reply With Quote

    11. February 28, 2011 #11
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      If you recently changed the encoding for Space characters via the VaultWiki: Server Settings menu, go to AdminCP > VaultWiki > Wiki URL Manager > Rebuild All URLs.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    12. February 28, 2011 #12
      tagman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      tagman is offline
      Junior Member
      Join Date
      February 5, 2011
      Posts
      27
      Rep Power
      160
      Tried that, but no luck. Any other ideas?
      Reply With Quote Reply With Quote

    13. February 28, 2011 #13
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      When you create a new page, do you also get a 500 error after it's saved?
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    14. February 28, 2011 #14
      tagman
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      tagman is offline
      Junior Member
      Join Date
      February 5, 2011
      Posts
      27
      Rep Power
      160
      I just tried and yes I get the 500 error when it saves. I can see that it saved in showwiki/Special:Newpages. I can't seem to access the Book or wiki namespaces either. Only the special pages.

      I also tried turning off the vbseo plugin temporarily. VW seems to work OK when vbseo is turned off.

      With the plugin turned back on, I tried turning off only the forum redirect part of vbseo and I still get the error. I'm guessing there is something funny with htaccess still?
      Reply With Quote Reply With Quote

    15. February 28, 2011 #15
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,934
      Blog Entries
      18
      Rep Power
      659
      For the part:
      Code:
      RewriteCond %{REQUEST_URI} !showwiki_proxy.php
      Does it make a difference if you use:
      Code:
      RewriteCond %{REQUEST_FILENAME} !showwiki_proxy.php
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Page 1 of 2 12 Next LastLast

    Similar Threads

    1. Mod Rewrite Help
      By Elenna in forum VaultWiki Questions
      Replies: 4
      Last Post: April 4, 2013, 7:54 PM
    2. mod rewrite and special pages
      By cosy in forum VaultWiki Questions
      Replies: 1
      Last Post: December 7, 2011, 4:55 PM
    3. Another question . . .
      By maryx in forum VaultWiki Questions
      Replies: 1
      Last Post: July 31, 2011, 2:54 AM
    4. Pricing question and upgrade question
      By Alan_SP in forum Pre-Sales Questions
      Replies: 4
      Last Post: March 22, 2011, 6:16 PM
    5. nginx rewrite rules
      By SSSlippy in forum VaultWiki Questions
      Replies: 4
      Last Post: July 28, 2010, 9:30 PM

    Tags for this Thread

    able, any, because, can, code, files, for, generate, htaccess, know, missing, mod, needed, only, options, put, question, rewrite, server, set, settings, stuff, that, the, them, vaultwiki, when, wiki

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 4:22 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.