Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.9
PHP version: 5.3.13
MySQL version: 5.0.96
Host: (optional, but it helps us help you)
Admin Tools version: 2.5.3
Description of my issue: First, thanks for programming such outstanding tools – you've saved us hours with Admin Tools and Backup!
We have a site that requires all addresses to add WWW to each URL and we've configured the .htaccess Maker to reflect that. However, we also have a specific URL that cannot have the WWW prefix in the address and every test we've tried to redirect the page to a non-WWW URL results in errors.
Is there a simple redirect that would change http://www.mydomain.com/component/users/?view=registration (either with or without the WWW) to just http://mydomain.com/component/users/?view=registration without the WWW, but still honor these rules?
##### Redirect non-www to www -- BEGIN
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
##### Redirect non-www to www -- END