Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Ruby On Rails .htaccess Redirection

tui shared this idea 6 years ago
Open Discussion


The current Ruby On Rails redirection write a rule on .htaccess that redirect a some subdirectory text url (like or to the app port.

However this rule only works with a slash at the end of the subdirectory text "" but it dont work if a visitor enter the url without the final slash "" if a visitor enter the url without the final slash he got a 404 not found error.

As nobody uses to write a final slash in the url, is likely that all the visitors get a 404 not found error on your app; in this case you (as a hosting provider or server manager) or the cpanel user account must manually modify .htaccess to allow the urls work with or without the final slash every time that he update, create or modify its ruby app.

I think that cPanel must update the current .htaccess rule in RoR redirection to allow the redirection with and without the final slash.

Leave a Comment
Attach a file