Contents
Why is my subdomain redirecting to my main domain?
Assuming that both your subdomain and main domain have the same document root (and thus use the same htaccess file), this is the rule that’s causing the redirect: This essentially says, if the domain is not www.mydomain.com.au, redirect it to http://www.mydomain.com.au/.
What does a 301 redirect do for a website?
This redirect is good for SEO since you can keep the search ranking of the old domain. 301 redirects tell the search engine that the two domains are for the same website, but operations are moved to a new domain. 302 redirects are temporary. They are also unmasked so your visitors will notice the URL change.
How to redirect a domain name in hpanel?
For this tutorial, we’ll be using the hPanel: 1 Go to the hPanel. Under the Domain category, choose the Redirects menu. 2 You’ll see the Create a Redirect section. 3 Click Create once you’re done. 4 Once redirected, you’ll see the target URL ( www.google.com) when accessing the original URL ( www.hostinger-dev-6.xyz ).
What does it mean to redirect a URL to another website?
What is a URL Redirect? When you redirect a URL, you’re simply forwarding it to another address on the same, or different domain. You can set up a redirect that sends visitors to your new domain name when they’ll try to access a URL that belonged to your old domain.
How to create a WordPress subdomain on cPanel?
We wanted to have a development site for it as a subdomain, so we created a subdomain dev.example.com on cpanel. Created a duplicate of its database and replicated the files to the directory root of dev.example.com.
Why does wp-admin redirect to the main site?
During some API testing for integration the “newsite” wp-admin kept redirecting to the main site’s login whenever you tried to access the “newsite” login.
How to enable subdomain VH in Ubuntu 16?
As I see, you created new file for subdomain VH, if you did it – you need to enable it using a2ensite: Try to access subdomain again. If you still see wrong page, try clearing cache or going to Incognito mode. Anybody?