How do i redirect the base url using htaccess?

I have a URL structure of:

mysite.com/user/(someusername)

and want to redirect only the base URL which is:

mysite.com/user/ 

to

mysite.com/users/ or mysite.com/members/

But the problem is when i add this line to htaccess.

redirect 301 /user /users/

Even

  mysite.com/user/(someusername)

gets redirected to

mysite.com/users/(someusername)

How can i redirect /user/ only?

Thanks!

Answers


RewriteEngine on
RewriteBase /
RewriteRule ^user/$ users/ [L,R]

Need Your Help

Jquery: Jcrop not working : Railscasts 182

jquery ruby-on-rails-3 jcrop railscasts

I am using Railscasts 182 to crop the uploaded image. As per the video I implemented this:

spring batch read write execution time

spring spring-batch

I'm looking best way to measure execution time of Spring Batch read, procced and write action.