Welcome Guest, Not a member yet? Register   Sign In
force to www
#2

Just edit the .htaccess file in the root where index.php is

Find this in the file:

Code:
    # Rewrite "www.example.com -> example.com"
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]

Remark out the 3 lines with a # sign:

Code:
    # Rewrite "www.example.com -> example.com"
    #RewriteCond %{HTTPS} !=on
    #RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    #RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
force to www - by mjamilasfihani - 08-13-2020, 03:18 AM
RE: force to www - by InsiteFX - 08-13-2020, 05:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB