• Resolved tollie

    (@tollie)


    I just started a new site on a new host: powweb. Their instant-installer used 2.0.2 (obsolete) and the even older, ugly, htaccess file with some 20 rewriterules to make pretty permalinks work.

    A fresh install of wordpress 2.0.3, with the usual htaccess file, results in pretty permalinks simply reloading the ‘home’ version of index.php.

    The non-mod_rewrite versions of linking works fine, including the index.php/pathinfo stuff.

    I’ve spent hours with powweb, in their IRC chatroom and on the phone to try and resolve this, but unfortunately no one I’ve talked to yet has been able to understand the problem, let alone figure out a solution. I’m currently expecting an email reply from a level3 tech in 48 hours, but would appreciate your help.

    At present, https://clbaptist.org has my notes to the tech and provides a more detailed explanation.

    In short: I believe a simple work around would be for someone to do a rewrite of
    https://clbaptist.org/stuffhere
    to
    https://clbaptist.org/index.php/stuffhere
    while leaving
    https://clbaptist.org/stuffhere
    in the address bar.

    I tried to do that, but haven’t yet been able to get it to work.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • What kind of server are you on?

    Do you think you could post the contents of the new .htaccess?

    If the old .htaccess worked, it might be worth going back to it.

    Thread Starter tollie

    (@tollie)

    What kind of server are you on?
    Powweb uses *nix.

    Do you think you could post the contents of the new .htaccess?

    Yes, but maybe I wasn’t clear. Here’s what I said, and what the problem is: “A fresh install of wordpress 2.0.3, with the usual htaccess file, results in pretty permalinks simply reloading the ‘home’ version of index.php.”

    There’s never been an htaccess that worked (on this host). I believe it’s going to be a WordPress/PHP/Apache problem, perhaps even a known bug; I haven’t tried to customize the the htaccess rewrite.

    Regardless, here is htaccess as it stands:

    • Options +FollowSymlinks

      # pointing clbaptist.com at clbaptist.org
      # ... unrelated to issue
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^clbaptist.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.clbaptist.com$ [NC]
      RewriteRule ^(.*)$ https://clbaptist.org/$1 [R=301,L]

      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      # END WordPress

      #Stuff I fooled with to try and fix it...
      #RewriteCond %{REQUEST_URI} !^index.php
      #RewriteRule . /index.php%{REQUEST_URI}

    Thanks.

    Thread Starter tollie

    (@tollie)

    Just FWIW – In my foolin’ around, I accidentally dropped the https:// from the domain rewrite. It’s back in now. Still unrelated to this issue though.

    Thread Starter tollie

    (@tollie)

    update: Powweb pointed me to a variable that works as an ugly bandaid to the problem. It adds a comprehensive set of rewrite rules to .htaccess (like the old days of WP). The variable is new to me, but searching for it yielded a good number of related posts.

    So here’s a temporary work-around to what is probably a PHP issue:

    • open wp-includes/classes.php
    • line 880: var $use_verbose_rules = false;
    • change to: var $use_verbose_rules = true;
    • update permalink options
    Roger

    (@rogerkondrat)

    you are a god tollie. I had the same prob and your work around fixed it. I have book marked this page so I can undo this once I migrate later this month to my new host.

    cheers,
    Roger
    https://prof.rogerkondrat.com

    Thread Starter tollie

    (@tollie)

    update again: Powweb seems to have (for the moment, and silently) fixed whatever caused this issue. Re-editing classes.php and toggling (AKA resetting) the permalink style seems to behave normally now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘powweb pretty permalinks don’t pass pathinfo to index.php’ is closed to new replies.