Hi!
Our ITS department upgraded the web server over the holidays and didn't bother to do any load testing. When everyone came back and the load got high the site became unresponsive. After blocking all external traffic to the site for four hours in the middle of the day they finally decided to revert to a snapshot taken before the upgrade. Since then we've started getting 404 errors anytime the trailing slash is not added to the URL. Does anyone know why this might happen? When the snapshot was taken this was not an issue. The FURL settings and my .htaccess file appear to be unchanged. I'm stumped. If it makes a difference, only the file system and not the database was rolled back.
Help? Thanks!
[ed. note: dwillis210 last edited this post 11 years, 8 months ago.]
-
☆ A M B ☆
- 24,524 Posts
Is this a snapshot of the entire server, or just of the MODX installation?
I think the issue may lie in something related to the "freeze URI" setting. On one page that was having the issue I froze the URI, removed the trailing slash from the value in the field and saved and cleared the cache. Then the page loaded without the trailing slash but not with it. Next I unfroze the URI and again saved and cleared the cache. Now it loads without the trailing slash and if I add the slash it gets stripped. I don't understand why the value of "freeze URI" is having an impact even when it's not checked but it certainly seems to be. Unfortunately we have ~12K pages and it just not feasible to freeze and unfreeze all of them. I really need to know why it broke.
In your system settings filtered by friendly urls what do you have in friendly_alias_trim_chars ?, mine is /.-_ so you could try editing that and remove the /
Some further weirdness with the freeze URI setting. There are three pages I've been working with trying to troubleshoot this problem. On all three of them I've checked "freeze URI" and removed the trailing slash from the field, saved and cleared the cache. This works fine. Then when I go back and uncheck "freeze URI" and save and clear the cache, on two of the pages I notice that the trailing slash gets added back to the field. On the third it stays the way I left it. The one that stays the way I left it continues to work but the two the have the trailing slash added back cease working and return 404. But on all three of them the "freeze URI" option is unchecked.
Why would "freeze URI" continue to have an impact even when it's not checked? And why do some pages revert the change and others don't? Very strange, very strange...
[ed. note: dwillis210 last edited this post 11 years, 8 months ago.]