Skip to content

Commit 6ebb226

Browse files
authored
Merge pull request #21 from jonathanhefner/fix-guide-redirects
Fix guide redirects
2 parents b7704bc + 57644fc commit 6ebb226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/nginx.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ server {
4141

4242
rewrite /contributing_to_rails.html /contributing_to_ruby_on_rails.html permanent;
4343
rewrite /contribute.html /contributing_to_ruby_on_rails.html permanent;
44-
rewrite /constant_autoloading_and_reloading.html /autoloading_and_reloading_constants.html permanent;
44+
rewrite ^((?!/v[2-3]\.|/v4\.[0-1]).*)/migrations.html$ $1/active_record_migrations.html permanent;
45+
rewrite ^(.*)/constant_autoloading_and_reloading.html$ $1/autoloading_and_reloading_constants.html permanent;
4546

4647
location ~ ^/v\d {
4748
root /home/rails/guides;

0 commit comments

Comments
 (0)