Thread:Project:Support desk/non-www redirect for mediawiki/reply

Hi Vladimir!

You can get a redirect from www.site.com to site.com with lines like these in .htaccess:

RewriteCond %{HTTP_HOST} ^www\.site\.com$ [NC] RewriteRule (.*) http://site.com/$1 [L,R=301]

The last three lines of what you posted are not part of that redirect. They redirect calls to index.php, the MediaWiki script and pass parameters accordingly. The first two lines, which you have posted, do that.