Forum Moderators: phranque
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) [domain.com...] [R=301,L]
However, the client uses a shopping cart that is setup to run only on the non-www version. In fact, this 301 will mess up his shopping cart and not allow it to function properly. Fortunately, it is in a folder.
Is there anyway I can 301 non-www on the site to www minus one folder?
Use
RewriteCond %{REQUEST_URI} !/folder/
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim