Forum Moderators: phranque
Ie. http://example.com redirected to http://www.example.com
Using the simple Redirect 301 /index.html http://www.example.com/ would make sure that only the www.example.com was accessible.
However i now migrated both domains to the same hosting package, and now have a parked domain for another.com on my example.com domain.
I have another.com as a subdomain of example.com eg. [another.example.com...] which the domain another.com points to.
But i still need to have permanent 301 redirects for the non www versions for both domains.
BUT i still have one major problem for me, and that is i cannot redirect http://www.example.com/index.html to http://www.example.com/cms/
As in the .htaccess file if i set up a redirect rule for eg.
Redirect 301 /index.html http://www.example.com/cms/
It will also redirect [another.example.com...] to http://www.example.com/cms/
I have also tried using
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/cms/$1 [R=301,L]
But this still redirects my another.com to the example.com/cms folder?
How do i specify exactly http://www.example.com/index.html to redirect without effecting the subdomain?
I hope someone can make sense of my giberish?
Cheers in advance Alex