Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1938 closed defect (bug) (fixed)

permalinks broken under apache 1.33

Reported by: billimek's profile billimek Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: General Keywords:
Focuses: Cc:

Description

Running apache 1.33 (mod_rewrite is installed) with a fresh install of revision 3195 using the default configuration, no plugins, and default theme:

The index and permalink pages display correctly.

As soon as I change the permalink structure to something else (like 'Date and name based' - /%year%/%monthnum%/%day%/%postname%/), the main index page as well as any other permalink page will deliver the generic 404 error page.

I did verify that the .htaccess file is getting written to. The contents of
that freshly-created file is:

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

# END WordPress

In addition, I attempted to modify the .htaccess to a configuration that I
understand to work better with apache 1.33:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /test/index.php/$1
</IfModule>

# END WordPress

... and the behavior did not change. This style of .htaccess is what I currently use in my live wordpress installation (an earlier revision) with no issues. Just to clarify: mod_rewrite is installed and working correctly for other things.

Attachments (1)

test dump permalink - not working.txt (14.2 KB) - added by billimek 20 years ago.
output of dump_env plugin

Download all attachments as: .zip

Change History (4)

#1 @blueorder
20 years ago

I have the same issue on a test installation of WP 2.0 B2. The hosted site is using Apache 1.3.33 and PHP V5.0.4.

Other htaccess redirects (that worked on a previous installation of WP) are broken once WP 2.0 B2 is installed. Instead of redirecting, the page loads with the the current selected them and post body data as the body (no titles, comments links, etc...).

@billimek
20 years ago

output of dump_env plugin

#2 @ryan
20 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3206]) Strip home path from path info. This prevents a path info value of '/wp/index.php' from being considered as a permalink request. fixes #1938

#3 @(none)
19 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.