Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter amish

    (@amish)

    Anyone?

    Thread Starter amish

    (@amish)

    Problem is fixed now….

    The following piece of information from the Using Permalinks codex helped fix the problem:

    Server Blockage: Your host might have blocked the SERVER_SOFTWARE variable and this will cause WordPress’ .htaccess generation to fail. If you are sure that your server is running Apache, you can force WordPress to believe that your server is running Apache by changing your wp-includes/vars.php file. Follow the steps below to implement these changes.

    1. Open the wp-includes/vars.php file using the built in file editor in your WordPress Admin panel. To navigate to this panel, login to WordPress, click on “Manage”, then on “Files”, scroll to the bottom and type in wp-includes/vars.php into the text box under the “Other Files” title.
    2. Look for $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;, once you find it replace it with // $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;
    3. Add a new line under // $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0; and type in $is_apache = 1;

    I modified the vars.php file as described above to force WP to believe that Apache was there. Then I reset my permalink options to the default style and deleted the .htaccess that was there.

    I then went back to Permalink options and created the Pretty Permalink style. WP successfully created the new .htaccess with the proper mod_rewrite rules.

    Thread Starter amish

    (@amish)

    Some more info….

    I modified the .htaccess file permissions to 644, to remove write access. I was hoping that I might force WP to give me the info to manually input into the file. But even after I did that, I still got the confirmation that the Permalink structure was updated. Nothing else was written on the bottom.

    So confused….would love any more insight.

    Thread Starter amish

    (@amish)

    URL for the WP install:

    https://www.amishshah.com/wptest/

    Thread Starter amish

    (@amish)

    I’m not too familiar with .htaccess and how it works, but is there any chance that the .htaccess file at the domain root (which is where my current movable type installation publishes to) is part of the problem?

    Thread Starter amish

    (@amish)

    Its a blank* file that I created (uploaded via ASCII transfer, 666 permissions). It doesn’t get updated when I change permalink options.

    *Not entirely blank. I was getting an ‘fread’ error in the file editor in WP, so I created a 5 character comment to give the file some data.

    Thread Starter amish

    (@amish)

    I’ve sent in a ticket to verify AllowOverride.

    WP is not displaying any messages indicating what to manually add to .htaccess. The only thing I’m getting is a note at the top saying Permalink structure updated.

    Is there a standard set of lines that should be added? If so, what are they?

    I looked at the Permalinks codex page, but nothing there seems to address/fix the problem.

    Thread Starter amish

    (@amish)

    Linux (Unix?)
    Apache Version 1.3.36

Viewing 8 replies - 1 through 8 (of 8 total)