There is a site and it is necessary to configure .htaccess so that it redirects from one point to one file with parameters. I got it configured so, but it redirects only if you go to the site as follows:
- example.com (redirect goes)
- www.example.com (forwarding fails)
How to configure .htaccess so that it first redirects from www to non-www and then to index.php?
RewriteEngine On RewriteBase / RewriteCond %{http_host} ^example.com RewriteRule ^(.*)$ http://www.example.com/index.php?redirect=$1 [R=301,L]