Jump to content
Sign in to follow this  
Zahari M.

How to redirect www to non www?

Recommended Posts

Hi Guys!

Not very good with htaccess files hence the question...

The standard PW .htaccess file gives us the option to redirect non www to www...

  # -----------------------------------------------------------------------------------------------
  # Optional: Redirect users to the 'www.' version of the site (uncomment to enable).
  # For example: http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

How would we do the opposite?

Cheers guys!

Share this post


Link to post
Share on other sites

Hey teppo

Many thanks for that!

That's a good link you put there!

I guess I shall stick to www this time round... :-)

But I will also add your code into the htaccess comments file for future needs Teppo...

Thanks mate!

:-)

Share this post


Link to post
Share on other sites

Thanks @teppo. For me SEO is everything. So I will use the non-www version.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...