RewriteRule ^([^/\.]+)/$ $1 [R] redirects from website.com/abc/ to website.com/home/user/www/abc

How do you redirect towards the correct location? (website.com/abc)

Part one from the RewriteRule may be the matching part, the 2nd the alternative expression. For full-url RewriteRules they ought to begin with a ^/ (slash), just because a path after http://exampl.com always begins using the root-slash. To redirect http://example.com/abc/ to http://example.com/abc (take away the trailing slash) this can be done:

RewriteEngine On
RewriteRule ^/([^/]+/$ /$1 [R]

It appears such as the URL has already been being rewritten to some filename and you are spinning the filename. This usually occurs when the rewrite rule has been specified by an .htaccess file. The issue is because of the truth that when Apache reads the .htaccess file, it's already resolved all Web addresses to filenames. The conventional means to fix this really is to provide a RewriteBase rule inside your .htaccess. Try:

RewriteBase /

Above your RewriteRule to begin with.

More documentation is here

You could attempt it using the additional L flag to prevent any more rules to become applied:

RewriteRule ^([^/\.]+)/$ /$1 [R,L]

But when little else works, do this:

RewriteCond %{THE_REQUEST} ^[A-Z]+\ (/[^/.?\ ]+)/[? ]
RewriteRule ^[^/.]+/$ %1 [R]