Trying to do something simple here, but having a great deal of difficulty
.htaccess
Redirect 301 /foo-bar /foobar
This works on OSX but CentOS complains that I'm not using a full URL.
CentOS wants
Redirect 301 /foo-bar http://example.com/foobar
I don't want to specify the the full host name for each URL.
Both OSX and CentOS are running Apache 2.2.x
Is there some way to accomplish this?
Update:
I've tried RewriteRule
and it doesn't even seem to work
RewriteEngine On
RewriteRule ^/foo-bar$ /foobar [R=301,L]
The match isn't even made and now I'm getting a 404 error