When trying to redirect an URL in apache from:
www.example.com
to
example.com
it redirects to
example.com//
This is a one page webserver, Fixed IP goes directly to the page.
Editing directly on httpd.conf
Any idea of why is this happening?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [nocase]
RewriteRule ^(.*) http://example.com/$1 [last,redirect=301]