I recently changed some URLs in a Rails application, and I wonder if I should use routes + controllers + redirect_to to forward old URLs or just use .htaccess with Apache mod_rewrite?
I use Apache + Passenger, so htaccess files work, but it was curious if there was a standard for this kind of thing.
FWIW, URLs have been changed: http://example.com/user/joeschmoe
: http://example.com/joeschmoe
mod_rewrite, , , Rails. , , , mod_rewrite , , , .
mod_rewrite
- , mod_rewrite. Ruby, , Rails .
mod_rewrite, , .
( -), ( , .htaccess), httpd.conf ( . htaccess). .
Source: https://habr.com/ru/post/1725214/More articles:Какую версию ASP.NET MVC 2 я устанавливаю на своем веб-сервере, если я разработал решение с использованием ASP.NET MVC 2 в Visual Studio 2010 Beta 2? - asp.net-mvcWhen does the MVC pattern fit? - model-view-controllerКакой стек технологий вы бы рекомендовали для приложения интенсивной интрасети ввода данных с использованием инструментов Microsoft (asp.net mvc OR silverlight)? - jqueryАнимировать путь? - animationReset file permissions when switching branches in Git - gitParsing / Destroying Huge complex of SQL Server 2008 XML database (more than 30 tables) - sqlHow to create bitmaps (in C)? - cFinding a Good Example XML XML for Shredding in SQL Server 2005 - xmlDoes SQLite have cursors? - sqliteSQLite Cursor never has fields in it - androidAll Articles