Jump to content

[Answered] How much time does Redirect to take affect?


capcom

Recommended Posts

Will the URL will also show redirected domain link? I have a heliohost link ( subdomain.domain.heliohost.us ), but trying to redirect it to my new domain (subdomain.newdomain.com).  both points to the same folder though.  I setup about 2 hours ago, but when I got to my heliohost link, it is staying there only and not moving to my new domain without heliohost. see attached for my redirect setup. 

post-200883-0-88120900-1612468843_thumb.png

Edited by capcom
Link to comment
Share on other sites

That picture seems right to me.

Try following these steps to see if this helps you


Create / modify .htaccess as follows:
 

<IfModule mod_rewrite.c>
RewriteEngine on
Options FollowSymLinks
RewriteCond %{HTTP_HOST} ^apps.domain.com
RewriteRule ^(.*)$ redirectToGoogle.html [L]
</IfModule>


Make sure that you changed apps.domain.com to your own subdomain and also change the redirectToGoogle HTML to your own.

Create another HTML file and name what you just put it in above and forward to the desired site by replacing from http://yoursite.com to your custom domain.
 

<html>
<head>
<META http-equiv="refresh" content="0;URL=http://yoursitehere.com">
</head>
</html>


Please let us know if is still not working and I will escalate this to our root admin for assistance!

Link to comment
Share on other sites

Thanks. After few tries I decided to add redirect on my site, but found this better option.  

 

This link help me fix the issue.

https://serversitters.com/cpanel-redirects-not-redirecting.html#:~:text=To%20fix%20this%2C%20after%20you,should%20work%20without%20any%20issues.

 

If you have setup a redirect using the Redirects icon in cPanel, it may not always work.  The reason for this is that the redirect icon will create the rule for the redirect in the .htaccess, but it will place this new rule at the bottom of the file.  So if you have any other redirects happening ahead of the new rule that conflict with the new rule, then the new redirect just won’t work.

To fix this, after you have created the redirect, you need to find it in your .htaccess.  Move the lines to the top of the .htaccess file, then re-save it, and now the redirect should work without any issues.

Link to comment
Share on other sites

Thanks. After few tries I decided to add redirect on my site, but found this better option.

 

This link help me fix the issue.

https://serversitters.com/cpanel-redirects-not-redirecting.html#:~:text=To%20fix%20this%2C%20after%20you,should%20work%20without%20any%20issues.

 

If you have setup a redirect using the Redirects icon in cPanel, it may not always work. The reason for this is that the redirect icon will create the rule for the redirect in the .htaccess, but it will place this new rule at the bottom of the file. So if you have any other redirects happening ahead of the new rule that conflict with the new rule, then the new redirect just won’t work.

To fix this, after you have created the redirect, you need to find it in your .htaccess. Move the lines to the top of the .htaccess file, then re-save it, and now the redirect should work without any issues.

Awesome and thanks for sharing that with us! :) This will be helpful for other users if they get the same issue like you and they’ll definitely find this quickly.

 

Let us know if you need any help or questions.

Edited by Luigi123
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...