• 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 confusion

    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 19

    Thread: htaccess confusion

    • Thread Tools
      • Show Printable Version
    1. August 20, 2009 #1
      Badorties
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Badorties is offline
      New Member
      Join Date
      August 10, 2009
      Posts
      4
      Rep Power
      0

      htaccess confusion

      i'm slightly confused by the instructions on working with htaccess. right now the wiki is installed inside the forum itself like so www.site.com/forum/wiki/

      i would like the wiki to be located at www.site.com/wiki/

      The instructions aren't very clear on how to make this possible. it has two scenarios, those being:

      Code:
      Case #1
      Your forum resides at http://www.example.com/forums/
      Your wiki resides at http://www.example.com/wiki/
      
      Case #2
      Your wiki resides in your forum root.
      for case 1 is this implying that the wiki is actually installed in its own folder, and if so how is this possible? the install process won't even display when the wiki is in any folder other than the forum root. this is where the confusion comes in, do you understand?

      i modified the vaultwiki server settings baseurl to what i would like it to be, however i need clarification on how exactly to make this happen?
      Reply With Quote Reply With Quote

    2. August 21, 2009 #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
      You don't need to install the wiki in a separate folder. If you followed the install instructions and physically uploaded the files to the forum root, this is correct.

      Case #1 shows that you can make your wiki appear in /wiki/ using htaccess, even though you installed it in another directory.

      When working with htaccess this kind of thing is typical, where pages "appear" at URLs that do not match their physical location.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. August 23, 2009 #3
      Badorties
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Badorties is offline
      New Member
      Join Date
      August 10, 2009
      Posts
      4
      Rep Power
      0
      thanks. i got this working and the /wiki/ works correctly, but a new problem has cropped up. when browsing to site.com/wiki/ a special page comes up with the vaultlogo.gif image. ideally i would like this to display a wiki index. is there a way to control what page displays here?
      Reply With Quote Reply With Quote

    4. August 24, 2009 #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
      You can add a rule like:
      Code:
      RewriteRule ^wiki/$ wiki/Index-Page [L,R=301,QSA]
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. August 27, 2009 #5
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      Question Questions

      Hello!

      I post here, as to not start a new thread... yet please open a new one if it is better suited.

      My issue (I believe) has to do with the .htaccess file.
      I have read back and forth all I could, yet I still have confusion.

      The doubt/question comes into play when reading the instruction's Wiki Under the Forum Root article.

      If I have "Simplify Wiki Links" enabled, I have to add all these 3 lines?

      #1
      If you have enabled Simplify Wiki Links, add the following line:
      Code:
      Code:
      RewriteRule ^showwiki.php?VAR=(.*)$ FILE/$1 [L,R=301]
      #2
      If you have Simplify Wiki Links enabled, add the following line:
      Code:
      Code:
      RewriteRule ^FILE/DEFAULT:(.*)$ FILE/$1 [L,R=301]
      #3
      If you have Simplify Wiki Links enabled, add the following line:
      Code:
      Code:
      RewriteRule ^FILE/(.*)?$ showwiki_proxy.php [L,QSA]
      So I add all three lines?
      Reply With Quote Reply With Quote

    6. August 27, 2009 #6
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      A little bit more information...

      Here is some more information that might help illuminate the problem:

      I believe I correctly created a forum for the wiki, which can be seen at this link (because it has the VaultWiki icon on the forum's name).

      If we go into the wiki forum, we get this page.

      Now, I am able to "create" new threads... yet when I click on one to see/read it, there's a 'server timeout error' on part of the browser.
      To be more exact, this is the message FireFox provides:
      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
      Am I missing something big?

      Thanks =)
      Last edited by creativeLiquid; August 27, 2009 at 6:00 PM.
      Reply With Quote Reply With Quote

    7. August 27, 2009 #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
      You need all three lines. The instructions have them separated because they need to be placed in a specific order. I don't know how to be any clearer in the instructions than saying "add" this to what you already have.

      You can get an infinite redirect if your htaccess settings don't match your vBulletin settings as explained in the instructions. It mentions at least 3 different vBulletin settings to refer to, OR

      If you are running vBSEO 3.2.0 or earlier (the current version is 3.3.0), Simplify Wiki Links won't work at all. You will need to update vBSEO first, or disable Simplify Wiki Links.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. August 27, 2009 #8
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      Thumbs up

      Hello pegasus, thank you for the reply.

      Quote Originally Posted by pegasus View Post
      You need all three lines. The instructions have them separated because they need to be placed in a specific order.
      Ok, I added all three of them.
      Code:
      RewriteEngine on
      
      RewriteBase /forums/
      RewriteRule ^showwiki.php?VAR=(.*)$ FILE/$1 [L,R=301]
      RewriteRule ^FILE/DEFAULT:(.*)$ FILE/$1 [L,R=301]
      RewriteRule ^FILE/(.*)?$ showwiki_proxy.php [L,QSA]
      Originally, there were four other lines in that .htaccess file.
      I left them there, and placed VaultWiki's lines before those.
      (reason being that the RewriteEngine on line was already present in the .htaccess file)

      Quote Originally Posted by pegasus View Post
      I don't know how to be any clearer in the instructions than saying "add" this to what you already have.
      Please excuse me for this... I just have no idea what I'm doing here.


      Quote Originally Posted by pegasus View Post
      You can get an infinite redirect if your htaccess settings don't match your vBulletin settings as explained in the instructions. It mentions at least 3 different vBulletin settings to refer to, OR

      If you are running vBSEO 3.2.0 or earlier (the current version is 3.3.0), Simplify Wiki Links won't work at all. You will need to update vBSEO first, or disable Simplify Wiki Links.
      We're not running vBSEO.
      I'll keep on searching to see what I can do.

      Thank you for your help and attention!
      Very much appreciated.

      Regards,
      -- AJ
      .
      Reply With Quote Reply With Quote

    9. August 27, 2009 #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
      Your .htaccess settings were appropriate (you used the right lines), but incorrect -- you need to replace some of the text as explained on the first page of Configuring .htaccess:
      FILE - your vBulletin setting for "Wiki File Name"
      VAR - your vBulletin setting for "REQUEST Title Variable"
      DEFAULT - the value at CES VaultWiki > Namespace Manager > Namespace Functions > Default namespace.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    10. August 27, 2009 #10
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      Question Progress! =)

      Quote Originally Posted by pegasus View Post
      Your .htaccess settings were appropriate (you used the right lines), but incorrect -- you need to replace some of the text as explained on the first page of Configuring .htaccess:
      FILE - your vBulletin setting for "Wiki File Name"
      VAR - your vBulletin setting for "REQUEST Title Variable"
      DEFAULT - the value at CES VaultWiki > Namespace Manager > Namespace Functions > Default namespace.
      Thank you for the quick reply pegasus

      I checked what you mentioned, and sure enough, that was it.
      My apologies, as I did read over that... my mind must be kind of zoned-out.

      For reference, here is what I ended up with:
      Code:
      RewriteEngine on
      
      RewriteBase /forums/
      RewriteRule ^showwiki.php?title=(.*)$ showwiki.php/$1 [L,R=301]
      RewriteRule ^showwiki.php/ComoEstaEso+com+wiki:(.*)$ showwiki.php/$1 [L,R=301]
      RewriteRule ^showwiki.php/(.*)?$ showwiki_proxy.php [L,QSA]

      =====
      I reinstalled VaultWiki (which is actually very easy thanks to the install script).
      Now I'm able to see the wiki forum fine, here at this link.



      =====
      At the moment, I have a small hiccup.
      I'm checking my settings to see if I missed something... this is the message I'm getting when "Previewing" or trying to "Post" a new article.
      404 Not Found
      The requested URL /forums/showwiki/test1?do=edit does not exist.
      As soon as I find out what I have set wrong, I'll post here for reference.

      Thank you for your support and help!!

      -- AJ
      .
      Reply With Quote Reply With Quote

    11. August 28, 2009 #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
      Wherever you have showwiki.php/ (with the slash) it should be showwiki/
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    12. August 28, 2009 #12
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      Question Making good progress...

      Quote Originally Posted by pegasus View Post
      Wherever you have showwiki.php/ (with the slash) it should be showwiki/
      Hello again pegasus,
      Thank you for the ton of patience with my installation.
      It is very appreciated.

      Per your suggestions, my current three lines are:
      Code:
      RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/ComoEstaEso+com+wiki:(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA]
      With this in place, I make a small test article, and when I click on "Preview" or "Submit", I get a
      404 Not Found
      The requested URL /forums/showwiki/test2?do=edit does not exist.
      Yet, if I take that address in the address-bar, and exchange
      /showwiki/ with /showwiki.php/ and click enter, I get a message that states:
      vBulletin Message
      Sorry! This forum is not accepting new posts.
      ======
      To be clear, my procedure for a new article is:
      0- click on the wikiForums link
      1- click on "New Thread"
      2- type in a title (like test1)
      3- click "Start Editing"
      4- write two or three words (longer than the minimum for a post)
      5- click "Post New Article" or "Preview Article"

      After clicking on #5 is that I get the 404 message.

      I've played around the the ".php", and I checked the CES VaultWiki settings in vBulletin Options --> VaultWiki: Server Settings and at VaultWiki: General Settings.
      Yet I still don't find what I have wrong.

      Clearly, we're on the right path.

      Please reply whenever you can... I'm sure you have 3 dozen things going on on your side.
      Thank you for the help!!

      Regards,
      -- AJ
      .
      Reply With Quote Reply With Quote

    13. August 28, 2009 #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
      You can get the "Sorry! This forum is not accepting new posts" message if the forum you created for "wikiForums" has one of these settings:
      • Act as Forum: No
      • Forum is Open: No

      Note that both of these settings must be "Yes" in order to post to any forum.

      Also, please post your "VaultWiki: Server Settings" for review.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    14. August 31, 2009 #14
      creativeLiquid
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      creativeLiquid is offline
      Junior Member
      Join Date
      August 23, 2009
      Posts
      31
      Rep Power
      179

      Thumbs up More information...

      Quote Originally Posted by pegasus View Post
      You can get the "Sorry! This forum is not accepting new posts" message if the forum you created for "wikiForums" has one of these settings:
      • Act as Forum: No
      • Forum is Open: No

      Note that both of these settings must be "Yes" in order to post to any forum.

      Also, please post your "VaultWiki: Server Settings" for review.
      Hello!

      Here is the update:
      In vB Admin CP --> CES VAult Wiki --> Namespace Manager
      Then on #6, which is the wiki, I clicked on "Forum"
      On "Posting Options" I have:
      Act as Forum (Will act as category if no)
      YES

      Forum is Active (Will not appear if set to no, but remains accessible if the forum's URL is known)
      YES

      Forum is Open (Set this to 'No' to prevent any new posts being made in this forum)
      YES

      Index New Posts in Search Engine (Setting this to 'No' will prevent anyone from being able to search in this forum)
      YES

      Here is the .htaccess file that is in use at the moment:
      =======
      Here is the Vault Wiki: Server Settings
      Turn on the Wiki?
      YES

      Wiki Base URL
      http://www.comoestaeso.com/forums


      Filename of the Wiki PHP file
      showiki


      REQUEST Title Variable
      title

      Replace Spaces in URLs?
      + (plus)

      Simplify Wiki Links?
      YES

      Enable Link Caching?
      YES
      ====
      Here is the .htaccess file as it is on the server at the moment:
      Code:
      RewriteEngine on
      
      RewriteBase /forums/
      RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/ComoEstaEso+com+wiki:(.*)$ showwiki/$1 [L,R=301]
      RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA]
      
      
      AddHandler fcgid-script .php
      
      RewriteCond %{HTTP_HOST} ^comoestaeso.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.comoestaeso.com$
      RewriteRule ^/?$ "http\:\/\/www\.ComoEstaEso\.com\/cms" [R=301,L]
      ========
      Thank you very much for the help... I am really trying to figure out what I am doing wrong over here.

      Your help is much appreciated!
      Reply With Quote Reply With Quote

    15. August 31, 2009 #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
      Can you get the wiki to work without using any RewriteRules and using the default VaultWiki: Server Settings values? that is, Simplify Wiki Links as "No".
      - 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 issues
      By Kaelon in forum VaultWiki Questions
      Replies: 15
      Last Post: April 3, 2010, 4:11 PM
    3. htaccess and the CMS Suite?
      By Webbstre in forum VaultWiki Questions
      Replies: 1
      Last Post: March 10, 2010, 9:45 AM
    4. .htaccess
      By diyaudio in forum VaultWiki Questions
      Replies: 2
      Last Post: February 18, 2010, 9:14 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, advanced, all, allowing, another, any, anyone, are, aren, base, because, before, being, better, but, can, check, com, confusion, correct, could, detected, did, different, disable, does, doing, don, easy, enabled, example, files, first, for, from, get, getting, going, has, have, hello, help, here, how, htaccess, http, icon, into, its, keep, know, left, like, longer, more, must, name, need, new, new posts, now, one, other, out, own, patience, php, place, please, plus, possible, proxy, quick, quote, really, reason, redirecting, reference, removing, replace, reply, request, required, right, see, server settings, should, shows, showwiki, some, someone, something, specific, suited, sure, that, the, their, them, there, things, this, threads, trying, two, type, under, use, using, value, vaultlogo, very, was, way, were, what, when, where, will, with, without, words, would, write, www, you, your

    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 2:52 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.