Results 1 to 1 of 1
-
6th May 2012, 01:29 PM #1OPMember
Proper Nginx 301 Direct?
I'm moving from one domain to another. Still using wordpress, and same database just different domain.
This setting worked for me, BUT my big question is this the proper 301 redirect where it tells google I am MOVING so that it knows to pass the link juice and page rank over to the new domain?
server {
#move the server_name 'www.' to rewrite
#if you prefer www.domain.com
server_name www.oldsite.com *.oldsite.com;
rewrite ^/(.*) http://oldsite.com$1 permanent;
}
server {
listen 80;
#add 'www.' prefix if you prefer www.domain.com
server_name oldsite.com;
rewrite ^/(.*) http://newsite.com/$1 permanent;
access_log /home/www/oldsite.com/logs/access.log;
error_log /home/www/oldsite.com/logs/error.log;
The line in bold is my question, $1 is the same as request_uri?
permanent = 301??
Thanks in advance.LuDo8 Reviewed by LuDo8 on . Proper Nginx 301 Direct? I'm moving from one domain to another. Still using wordpress, and same database just different domain. This setting worked for me, BUT my big question is this the proper 301 redirect where it tells google I am MOVING so that it knows to pass the link juice and page rank over to the new domain? server { #move the server_name 'www.' to rewrite #if you prefer www.domain.com server_name www.oldsite.com *.oldsite.com; rewrite ^/(.*) http://oldsite.com$1 permanent; } Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
What is the PROPER way of Domain Redirection?
By Arthur in forum Webmaster DiscussionReplies: 6Last Post: 10th Apr 2012, 01:50 PM -
need proper hosting
By ElitePirate in forum Hosting DiscussionReplies: 9Last Post: 19th Oct 2011, 06:35 AM -
need a proper site !
By Aztec234 in forum Server ManagementReplies: 5Last Post: 21st Jun 2011, 04:26 PM -
Proper 301 Redirect URL
By LuDo8 in forum Server ManagementReplies: 3Last Post: 1st Mar 2011, 07:27 AM -
proper vb license wanted
By mister_X in forum Completed TransactionsReplies: 0Last Post: 1st May 2009, 06:37 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...