Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

301 redirect issue

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
chaosjester
Posts: 11
Joined: Thu Sep 04, 2014 5:41 am

301 redirect issue
  • Quote

Post by chaosjester » Fri Oct 31, 2014 10:02 pm

Hi,

I have set up a .htaccess with a 301 redirect from one of my sites .com.au domain to their .com.hk domain but when going to the .com.au domain I get redirected to a different site on my server. Has anyone come across this issue before?

Here is what I have in the htaccess file

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://domain.com.hk/$1 [R=301,L]
Top

chaosjester
Posts: 11
Joined: Thu Sep 04, 2014 5:41 am

Re: 301 redirect issue
  • Quote

Post by chaosjester » Fri Oct 31, 2014 10:10 pm

Looks like this issue has something to do with nginx, I just turned off nginx support for the domain and the redirect works fine.

This site won't really benefit from nginx much so I am happy to leave it off, but if anyone has a fix, I would still like to know.

Thanks :)
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password