WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#5032 closed task (blessed) (wontfix)

Option to disable Canonical Redirects

Reported by: markjaquith Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: General Keywords: 2nd-opinion
Focuses: Cc:

Description

While I'm really excited about canonical redirects, and they're much more conservative and reliable than previous iterations, there are still going to be people who have issues. Anyone whose REQUEST_URI isn't set correctly by their PHP setup (or fixed by WordPress) is going to have issues. It's likely to be a small minority, but for the minority affected, it's a rather catastrophic failure that may cause their site to be unavailable.

As of right now, you need a plugin to disable canonical redirects. I'm loathe to introduce options, but this might be a good case for one.

I know it's late to be introducing this, but it will likely make the release go more smoothly.

Attachments (1)

5032.diff (3.7 KB) - added by markjaquith 7 years ago.

Download all attachments as: .zip

Change History (7)

markjaquith7 years ago

comment:1 markjaquith7 years ago

  • Keywords 2nd-opinion added
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Patch uploaded.

Ryan was +1 on this. Haven't heard from Peter or Matt.

Adds one i18n'd string:

WordPress should attempt to redirect visitors to the correct URL for their request <em>(disable this if you are having issues with infinite redirects)</em>

So we'll need to inform the polyglots list of that.

comment:2 markjaquith7 years ago

  • Milestone 2.3 deleted
  • Resolution set to wontfix
  • Status changed from assigned to closed

We're going to wing it.

Suggest that we put a link in the announcement post that provides more information about the canonical redirect feature. I was planning on doing an post on the feature, so maybe we could link to that and I could provide more information for anyone who might be having issues.

comment:3 follow-ups: meganpru6 years ago

After making the changes to the attached file, I no longer got stuck in a redirect loop, but the styles on my blog totally disappeared. My blog is volksvegan.org. I posted my previous problems & more info here: http://trac.wordpress.org/ticket/5089

Please let me know how to fix my blog! Thanks...

comment:4 in reply to: ↑ 3 meganpru6 years ago

Replying to meganpru:

After making the changes to the attached file, I no longer got stuck in a redirect loop, but the styles on my blog totally disappeared. My blog is volksvegan.org. I posted my previous problems & more info here: http://trac.wordpress.org/ticket/5089

Please let me know how to fix my blog! Thanks...

Also, I cannot access the wp-admin folder. When I go to it, I just see my blog, sans styles and formatting. Very odd...

comment:5 in reply to: ↑ 3 DD326 years ago

Replying to meganpru:

Please let me know how to fix my blog! Thanks...

This would probably be better suited to the Support forums IMO.

However, I would be checking that your .htaccess file contains the correct rules, It appears to be redirecting it even if the file exists in the given location.

I would remove your .htaccess file, and then attempt to access your blog again, if you ucan acess it then, load the admin and change the permalink structure/save it again, that should force WP to re-create a correct .htaccess file. (Also check the Site URL and Blog URL while you're in there).

D

comment:6 meganpru6 years ago

Hey thanks, deleting the htaccess file seems to have worked! ALthough I'm not too sure how to proceed, but everything seems to be ok now. So far so good... and I'm new here, so if I have any further problems I'll post in the support forum. Gracias! :)

Note: See TracTickets for help on using tickets.