: .htaccess 301 Redirect How do I make it so all traffic is directed for the entire site and all subdirectories from non-www to www. Here is my .htaccess contents: RewriteEngine on <IfModule
How do I make it so all traffic is directed for the entire site and all subdirectories from non-www to
Here is my .htaccess contents:
RewriteEngine on
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/vivalast
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ "http://www.example.com/" [R=301,L]
More posts by @Gail5422790
1 Comments
Sorted by latest first Latest Oldest Best
Try this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ www.example.com/ [R=301,NC]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.