OCNJ
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Trailing dot redirects to signupI got this to work. You need to add these lines to the .htaccess but it must be before the rewrite to add a trasiling slash:
RewriteEngine On RewriteCond %{HTTP_HOST} (.*)\.$ RewriteRule (.*) http://%1/$1 [L,R=301]I got the Apache part to work but the problem is when it hits WordPress. http://www.example.com gets redirected to example.com. However, abc.example.com gets redirected to the registration page at http://wp.domain.com/wp-signup.php?new=abc.example.com.
I am pretty sure that one solution is to change ‘|^www\.|’ in the sunrise.php so that everything is redirected and not just “www”
Another solution is to have Apache redirect it before it hits WP.
original_account_name is the first account where you first set up WP
new_account_name is the new account name you set up on the new IP1. In Cpanel create a new user with the new IP with name new_account_name. The current WP installation would be under user original_account_name on the original IP
2.Log in as root from putty.exe and run these 2 commands:
rm -rf /home/new_account_name/public_html
ln -s /home/original_account_name/public_html
/home/new_account_name/public_html