Why is my cPanel redirect not working?
Table of Contents
Why is my cPanel redirect not working?
The Gist: If you find that the 301 redirects, you have added using cPanel’s “Redirects” tool, are not working on a WordPress site, make sure these redirects are added before the WordPress rewrite rules, in the . htaccess . Best way to ensure this is to add your redirect rules first, through cPanel, then edit the .
How do I redirect a subdomain to a URL in cPanel?
Redirecting a subdomain
- In the DOMAINS section of the cPanel home screen, click Subdomains:
- Under Modify a Subdomain, locate the subdomain that you want to redirect, and then click Manage Redirection.
- On the Redirection page, type the redirection destination address in the redirects to: text box.
- Click Save.
How do I redirect a subdomain to another domain?
To enable subdomain redirection:
- Click Subdomains under Domains in cPanel.
- Under Modify a Subdomain, locate the subdomain you want to redirect. Click Manage Redirection.
- In the Subdomain Redirection text box, enter the redirection destination address.
- When ready, click Save.
Why my subdomain is not working?
The general cause of a subdomain on Cloudflare not working on a site is that you haven’t added it in your zone file for the domain.
Why redirection is not working?
First try removing and then re-adding the redirects. Make sure to clear your browser cache when you go back to test. If the problem recurs, then check your . htaccess file to see if something is there that may be interfering with your current redirects.
How do I access my subdomain in cPanel?
To open the subdomain’s main directory with the File Manager interface (cPanel >> Home >> Files >> File Manager), click the link under Document Root that corresponds to that subdomain.
Can I redirect subdomain?
Under Modify a Subdomain, locate the domain you want to redirect, then click its Manage Redirection link on the right. In the text box, type the URL you would like visitors to be redirected to if they go to the subdomain sample1.hgexample.com. Click Save. You will see the redirected URL under the Redirection column.
What is subdomain forwarding?
Domain and (subdomain) forwarding lets you automatically direct your visitors to a different website. Masking prevents visitors from seeing your domain or subdomain forwarding by keeping your domain name in the Web browser’s address bar.
How long does it take for a subdomain to become active?
This can take anywhere from 24 to 48 hours. You can access the subdomain by using http://www.your-domain.com/sub until the subdomain’s DNS information propogates.
How do I change the IP of a subdomain in cPanel?
Navigate to the /var/cpanel/userdata/username directory. Open the subdomain.example.com file with a text editor. Now, update DNS records file for subdomain from WHM Panel: Edit the subdomain’s IP address in WHM’s Edit DNS Zone interface (Home >> DNS Functions >> Edit DNS Zone).
How do I redirect a subdomain to an IP address?
Forward your subdomain
- Sign in to Google Domains.
- Click the domain name.
- Open the menu. , if applicable.
- Click Website.
- Click Add a forwarding address.
- Click Edit.
- Click + Forward a subdomain.
- Enter the subdomain you want to forward.
How do I point a subdomain to an IP address in cPanel?
How to add a subdomain that points to an IP address
- Click the Zone Editor icon.
- Click +A Record for the domain that you want to point a subdomain to another IP.
- Add in the Name option the name of the subdomain and in the Address section the IP where the subdomain should point.
How long does it take for a subdomain to become active cPanel?
The cPanel Zone Editor will automatically create an “a record” for the subdomain with an appropriate IP address. After propagation time, anyone else who types in your subdomain online should reach your new site. It can take up to 24 hours for a new Subdomain to propagate (show up on the web).