Jump to content

.htaccess file does not work on new hosting Plateform


Recommended Posts

Hello everyone, recently I moved my website from old Linux VPS Hosting to a new Linux Hosting provider, but I am facing a problem is the .htacess file for the new hosting but the file works fine for the old hosting. I used the .htaccess file to redirect people's browsers to another URL the codes are as follow:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP:Accept-Language} ^zh-cn.*$ [NC,OR]
RewriteCond %{HTTP:Accept-Language} ^zh.*$ [NC]
RewriteRule ^.*$ http://www.google.com [R=302,L]

How can I make it work for the my new Linux hosting?

Edited by kennyanderson72

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...