I've got a joomla 1.6 website, and I wish to enforce a world wide web at first of web addresses. I have written the next into htaccess:

RewriteCond % ^example.com [nc]

RewriteRule (.*) http://world wide web.example.com/$1 [r=301,nc]

What it really must do is redirect from example.com/happy_rabbits.html to world wide web.example.com/happy_rabbits.html. Rather it redirects to world wide web.example.com/index.php


RewriteCond % ^example.com [nc]

RewriteCond % ^(.*)$

RewriteRule .* http://world wide web.example.com%1 [r=301,nc,l]

No clue why the very first did not work, but that one does

Perhaps you have attempted...

RewriteCond % ^example.com [NC]

RewriteRule ^(.*)$ http://world wide web.example.com/$1 [R=301,NC]