Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 492997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T02:10:10+00:00 2026-05-13T02:10:10+00:00

I recently changed some URLs in my Rails app and am curious if I’m

  • 0

I recently changed some URLs in my Rails app and am curious if I’m better off using routes + controllers + redirect_to to forward the old URLs, or just use .htaccess with Apache’s mod_rewrite?

I’m using Apache + Passenger so htaccess files work, but was curious if there was a standard for this sort of thing.

FWIW, the URLs were changed from this: http://example.com/user/joeschmoe

to this: http://example.com/joeschmoe

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T02:10:11+00:00Added an answer on May 13, 2026 at 2:10 am

    Using mod_rewrite will undoubtedly give the best performance because the request won’t even touch Rails. However, there is a third way if you find mod_rewrite to be a bit of a pain to get working—as I do—and a maintenance burden.

    Refraction is Rack middleware designed to replace mod_rewrite. It lets you write your rewrite rules using good old readable Ruby code and it’s still faster than using Rails itself for the task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently changed some repositories over to Git from SVN by using git svn
I recently changed my CMS, and want to rewrite some of my URLs to
I have recently changed my web app to create a database connection per command
I recently changed some of my pages to be displayed via ajax and I
I recently changed MSXML2.DOMDocument to MSXML2.DOMDocument40 because of some reason.It works in my Computer.But
Apple has recently changed the portal. Some of the changes are aery good, but
We (our IT partner really) recently changed some DNS for a web farmed site
I recently changed over some of the CSS on my page and it is
A client's web host recently changed servers on them and it's broken some of
I recently upgraded a site and almost all URLs have changed. I have redirected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.