• 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
    • .htaccess issues

    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 16

    Thread: .htaccess issues

    • Thread Tools
      • Show Printable Version
    1. April 2, 2010 #1
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201

      .htaccess issues

      So, I followed the instructions for the Mod-Rewrite code dialogue box, but I am still unable to access my Wiki.

      http://www.domain.com/.htaccess:

      Code:
      RewriteEngine On
      RewriteBase /
      
      RewriteRule ^wiki.php$ http://www.domain.com/forums/showwiki.php [L,QSA]
      http://www.domain.com/forums/.htaccess:

      Code:
      RewriteEngine On
      RewriteBase /forums/
      
      RewriteRule ^showwiki.php?title=(.*)$ wiki/$1 [L,R=301]
      RewriteRule ^wiki/Default:(.*)$ wiki/$1 [L,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^wiki/(.*)?$ showwiki_proxy.php [L,QSA]
      I am also using vBSEO. Are any of these rewrite rules to blame presently? Accessing my domain.com/wiki links is returning 404 errors for me.
      Reply With Quote Reply With Quote

    2. April 2, 2010 #2
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      If it's helpful, here are my current .htaccess rules that I am actually using. The goal is to get my Wiki accessible at www.domain.com/wiki/Article -- I have renamed showwiki.php to wiki.php per your earlier guidance.

      http://www.domain.com/forums/.htaccess:

      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 /forums/
      
      RewriteCond %{REQUEST_FILENAME} showwiki.php
      RewriteRule ^(.*)$ $1 [L,QSA,S=1]
      
      RewriteRule ^showwiki.php?title=(.*)$ wiki/$1 [L,R=301]
      RewriteRule ^wiki/Default:(.*)$ wiki/$1 [L,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^wiki/(.*)?$ showwiki_proxy.php [L,QSA]
      
      RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
      
      RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
      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]
      http://www.domain.com/.htaccess:

      Code:
      RewriteEngine On
      RewriteBase /
      
      RewriteRule ^wiki.php$ showwiki.php [L,QSA]
      Reply With Quote Reply With Quote

    3. April 2, 2010 #3
      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
      Okay, it seems that the Mod-Rewrite Generator is still not producing correct results for the kind of setup you want. I'll have to create a similar setup to fix it, but here's the correct .htaccess files in the mean time.

      http://www.domain.com/.htaccess:
      Code:
      RewriteEngine On
      RewriteBase /
      
      RewriteRule ^forums/showwiki.php?title=(.*)$ wiki/$1 [L,R=301]
      RewriteRule ^wiki/Default:(.*)$ wiki/$1 [L,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^wiki/(.*)?$ forums/showwiki_proxy.php [L,QSA]
      http://www.domain.com/forums/.htaccess:
      Code:
      RewriteEngine On
      RewriteBase /forums/
      
      RewriteRule ^wiki.php$ showwiki.php [L,QSA]
      RewriteRule ^showwiki.php?title=(.*)$ http://www.domain.com/wiki/$1 [L,R=301]
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    4. April 2, 2010 #4
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      That's an improvement, but we still have problems using those rules. Now, when I access www.mydomain.com/wiki/ I am able to get to the forumdisplay (threadlisting) of my default wiki forum (vBSEO's /forums/wiki location). However, anything appended to /wiki/ (such as domain.com/wiki/Article Name) gets automatically redirected to domain.com/forums (my main forums index). Here are the new .htaccess files that I am using following your edits:

      domain.com/.htaccess:

      Code:
      RewriteEngine On
      RewriteBase /
      
      RewriteRule ^forums/showwiki.php?title=(.*)$ wiki/$1 [L,R=301]
      RewriteRule ^wiki/Default:(.*)$ wiki/$1 [L,R=301]
      
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^wiki/(.*)?$ forums/showwiki_proxy.php [L,QSA]
      domain.com/forums/.htaccess:

      Code:
      RewriteEngine On
      RewriteBase /forums/
      
      RewriteRule ^wiki.php$ showwiki.php [L,QSA]
      RewriteRule ^showwiki.php?title=(.*)$ http://www.domain.com/wiki/$1 [L,R=301]
      
      RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
      
      RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
      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]
      Thoughts?
      Reply With Quote Reply With Quote

    5. April 2, 2010 #5
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Another thought - do I need to be renaming my Wiki PHP file? You haven't clarified that, and I'm wondering if this is contributing to the problem. Following your earlier guidance, I renamed it from showwiki.php to wiki.php -- was that the right thing to do?
      Reply With Quote Reply With Quote

    6. April 2, 2010 #6
      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
      In domain.com/forums/.htaccess, you need to find:
      Code:
      RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
      Add before:
      Code:
      RewriteCond %{REQUEST_URI} !showwiki_proxy.php
      It's also recommended, if you're using vbSEO to rewrite your forum titles like this, that your default wiki forum's title is NOT the same as your Wiki PHP File Name. You can rename the wiki forum in your Forum Manager ("Wiki" will still be used unless you also rename the Wiki namespace). You can also use a different Wiki PHP File Name than "wiki" but keep in mind this will change the wiki's path and affect your rewrite rules.

      Of course you don't have to do any of that, if you're okay with not being able to access the wiki home page (see what happens when clicking the "Wiki" navbar link here).
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. April 2, 2010 #7
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      That did it! Thanks. Now I can access my wiki at www.domain.com/wiki/

      A couple of follow-ups:

      1. Clicking on any of my namespaces returns the forum threadlisting for that Wiki, rather than a Wiki display and a default page. Is there a step that I missed in the import/conversion process, or something else you can think of?

      2. Is there any way that we can deal with error-handling for users who manually type in domain.com/wiki (minus the trailing backslash)? This returns a 404 on the current setup.
      Reply With Quote Reply With Quote

    8. April 2, 2010 #8
      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
      1. You can set a default page for each wiki forum, but you probably want to create the pages first. See this doc page: http://www.vaultwiki.org/manual/Crea...orum-Main-Page

      2. You can add the following to the root .htaccess (probably should be added to the generator's output too):
      Code:
      RewriteRule ^wiki$ wiki/ [L,QSA,R=301]
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    9. April 2, 2010 #9
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Thank you! One more question:

      -- I have not yet converted the Legacy BBcodes in the Wiki Article/Maintenance Tools. I assume that it's okay if I leave this for a final step once I make sure that everything else is more or less working. Is that a valid assumption for me to make?

      Thank you so much, pegasus. It looks like we're well under way! I will be sure to let you know if I encounter any other issues with our Wiki.
      Reply With Quote Reply With Quote

    10. April 2, 2010 #10
      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
      Yes, you can feel free to wait to do that.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    11. April 2, 2010 #11
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Great, thanks so much, pegasus. I will probably just go ahead and do those now so that I can fully uninstall NuWiki.

      Thanks again for being patient and so responsive with my cranky questions!
      Reply With Quote Reply With Quote

    12. April 2, 2010 #12
      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
      All the imported stuff looks okay? Specifically, were the Books imported okay? Just want you to make sure before you remove the original data.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    13. April 2, 2010 #13
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Thanks, pegasus. So far, everything looks like it imported just fine. It was very quick, too. Having one problem, though, and I think it's related to the .htaccess issues (maybe).

      Next to the article title, the pulldown menu with options, the "What links here", and "Broken links" links do not work; they link to /forums/?suchandsuch URLs, which of course, are ignored by the forum. How do I fix that?
      Reply With Quote Reply With Quote

    14. April 2, 2010 #14
      Kaelon
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Kaelon is offline
      Regular Member
      Join Date
      June 17, 2008
      Posts
      116
      Rep Power
      201
      Also, before I forget -- is there a way to completely disable all forms of auto-linking? I don't even want the auto-linking pop-up/etc. routine loaded in any way.
      Reply With Quote Reply With Quote

    15. April 2, 2010 #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
      You can disable auto-linking from vBulletin Options > VaultWiki: General Settings > Enable Auto Links to VaultWiki articles

      I have continued the discussion about the broken links here: http://www.vaultwiki.org/issues/1360/
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Page 1 of 2 12 Next LastLast

    Similar Threads

    1. .htaccess + vbseo
      By Mondi in forum VaultWiki Questions
      Replies: 1
      Last Post: April 27, 2010, 10:38 PM
    2. htaccess and the CMS Suite?
      By Webbstre in forum VaultWiki Questions
      Replies: 1
      Last Post: March 10, 2010, 9:45 AM
    3. .htaccess
      By diyaudio in forum VaultWiki Questions
      Replies: 2
      Last Post: February 18, 2010, 9:14 PM
    4. htaccess confusion
      By Badorties in forum VaultWiki Questions
      Replies: 18
      Last Post: September 3, 2009, 1:12 PM
    5. Still can't use .htaccess after upgtrade...
      By mickknutson in forum VaultWiki Questions
      Replies: 4
      Last Post: May 15, 2009, 12:18 PM

    Tags for this Thread

    able, about, admincp, all, also, another, any, are, auto links, automatically, before, being, box, but, code, com, completely, correct, could, create, deal, default, did, different, discussion, domain, don, each, enabled, errors, file, filename, files, first, for, forumdisplay, forums, get, gets, having, how, htaccess, http, instructions, issue, issues, keep, know, line, linking, links, looks, mod, more, name, namespaces, need, now, other, php, pop, previews, proxy, quick, recommended, renamed, request, rewrite, right, rules, same, see, should, showwiki, something, stuff, sure, that, the, title, too, type, unable, under, ups, url, using, vbseo, was, wasn, way, were, wiki, www, you

    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 11:59 AM.
    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.