Forum Moderators: phranque
I contacted the support of my hosting company and they provided me with this .htaccess to do a redirect:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*) http://www.example.com/$1 [R=301,L]
Obviously, if I'm asking for your help it is because it does not work correctly...
On my host though, my html files are by default in the .html folder, which seem to cause the problem.
So when I uploaded the .htaccess, I did a test and http://example.com/abc.html was redirected to http://www.example.com/html/abc.html , which of course gives me a "Page not found".
Any idea how to modify my .htaccessto make it work with this "html" folder?
Thanks!
Shrike99