Support » Plugins » Faked Folders error (htaccess? modrewrite?)

  • I’ve been creating a test WP site at a domain which has pre-existing static content that will (eventually) be subsumed into the WP site if all goes to plan.
    But I haven’t been able to get Faked Folder to properly redirect to folders/directories I create.
    Once I create a faked folder, the redirect says “no posts match criteria” or the page that loads is the default (index) page for the top level of the domain.
    Here is my site structure:
    top level of domain, containing a number of pre-existing
    (.htaccess file with lots of redirects from old blah.shtml files to new blah.php format. I’m not touching this .htaccess file for this test, nor allowing write access to them.)
    (.htaccess file with necessary write permissions that FakedFolders uses)
    location of wp and, of course, wp’s index.php file.
    For my test, I created two draft posts, and placed them inside my test FakedFolder (the name of which I changed into various permutations, described later):
    about [set to index]
    resume [slug: resume]
    For all cases, I’ve set the rewrite rules to Thorough
    Test 1: I have tried to create faked folders that already exist in the site structure, e.g., = (goes to pre-existing static index.php) =(result 404)
    Note: I later realized that FF doesn’t do that, it appends the /wp/ directory where WordPress resides. But before I realized that, also I tried the following:
    Test 2: I adding the /wp/ directory to the FakedFolder name /wp/about/: = sorry no posts matched your criteria = 404
    It was at this point that I realized the automatic appending of /wp/ :
    In the WP-Admin interface, if I clicked a link to either the folder or to the individual posts, the url changed to add a second/wp/ directory. Here are the results: (displays index page of site [] at the /wp/wp/about/ url) = same top level page result.
    Test 3: I changed the Faked Folder directory name to just /about/ : = sorry, no posts match your criteria = displays top level index page of site. (that is,, but at the /wp/about/resume url.)
    Here’s the mod-rewrite rules that went into the .htaccess file in the /wp/ directory:
    RewriteRule ^about/resume/?$ /index.php ?static=true&p=5 [QSA]
    RewriteRule ^about/?$ /index.php?static=true&p=6 [QSA]

    Why does the Rewrite to /index.php begin with index.php and not /wp/index.php etc.? (hmmm. never mind, I tried manually changing the .htaccess file to change the above-italicized to /wp/index.php and got a Faked Folders fatal error when attempting to load .
    What’s going on here?
    Should I be using a different .htaccess file (at top of domain)?
    Any other ideas?
    I’m using:
    WordPress 1.2.1
    Exhibit 1.1d

Viewing 3 replies - 1 through 3 (of 3 total)
  • the /wp-admin/options-permalink.php is a nice helping tool to make your mod_rewrite rules, make sure you have RewriteEngine on and RewriteBase /wp before defining rules.

    But what I am trying to understand is— what is going wrong with my setup as it is? Why is FakedFolders broken?
    Are the rules generated by FakedFolders the reason that it’s not working? In other words, I’m all for using the wp-admin/options-permalink section of the site, but I do not yet know what to do there… what will fix my problem.

    I fought with the issue of it redirecting to /index.php as well. It’s hardcoded in the plugin. If you want it to automatically generate .htaccess rules for /wp/index.php, then you’ll have to search for the places where /index.php?static appears in the plugin file (there are four spots) and manually change them to /wp/index.php?static. Or at least, that’s what I ended up doing to get the .htaccess rules to work. *shrug*

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Faked Folders error (htaccess? modrewrite?)’ is closed to new replies.