| | #1 |
| Advanced Warrior War Room Member Join Date: 2009 Location: Chicago
Posts: 532
Thanks: 159
Thanked 153 Times in 54 Posts
|
Hey guys, My site was hacked a few months ago and although I've cleaned up my site, I need to perform a redirect. How do I redirect Best Way to Get Ripped Fast to https://thescienceofgettingripped.com/manual It looks like all of the pages on my site besides that one are redirecting properly. I've tried a 301 re-direct in CPanel but it says that it will create an infinite loop. Thanks |
| | |
| |
| | #2 |
| Easiest Web Hosting Join Date: 2015 Location: Vancouver / London
Posts: 57
Thanks: 12
Thanked 13 Times in 11 Posts
|
Have you tried skipping cPanel and modifying .htaccess directly via FTP? Instructions here: htaccess Redirect |
| Easiest Web Hosting
| |
| |
| | #3 |
| Active Warrior Join Date: 2014 Location: Bangalore
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
|
Try to take back up of original ht-access file before editing and use the following code for redirection. RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite any request to the wrong domain to use www. RewriteCond %{HTTP_HOST} !^www\. RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
| | |
| |
| | #4 | |
| Active Warrior |
This is how I did it in .htaccess, so your whole site is redirected to https
| |
| |
| | #5 |
| Warrior Member Join Date: 2015
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
|
Select URL Redirect Record from the drop-down menu for Type, put @ (your bare domain e.g. yourdomain.tld) for Host and enter a URL you would like to redirect a domain to into the Value line: 4. Click on Save all changes button.
|
| |
|
| Bookmarks |
| Tags |
| redirect, url |
| |