Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Nov 2015, 08:22 PM   #1
Advanced Warrior
War Room Member
 
rimam1's Avatar
 
Join Date: 2009
Location: Chicago
Posts: 532
Thanks: 159
Thanked 153 Times in 54 Posts
Default
How Do I Redirect This URL?
Share on: 
fb share twitter share gplus share more share

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

rimam1 is offline  
Unread 13th Nov 2015, 03:41 AM   #2
Easiest Web Hosting
 
Join Date: 2015
Location: Vancouver / London
Posts: 57
Thanks: 12
Thanked 13 Times in 11 Posts
Default
Re: How Do I Redirect This URL?
Share on: 
fb share twitter share gplus share more share

Have you tried skipping cPanel and modifying .htaccess directly via FTP? Instructions here: htaccess Redirect

Easiest Web Hosting
  • WordPress hosting from $0.84/month. Perfect for small projects and aspiring bloggers.
www.EasiestWebHosting.com/blogstarter.html
TechNik is offline  
Unread 13th Nov 2015, 03:47 AM   #3
Active Warrior
 
Leon William's Avatar
 
Join Date: 2014
Location: Bangalore
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Re: How Do I Redirect This URL?
Share on: 
fb share twitter share gplus share more share

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]

Leon William is offline  
Unread 13th Nov 2015, 04:09 AM   #4
Active Warrior
 
Join Date: 2010
Posts: 73
Thanks: 32
Thanked 2 Times in 2 Posts
Blog Entries: 10
Default
Re: How Do I Redirect This URL?
Share on: 
fb share twitter share gplus share more share

This is how I did it in .htaccess, so your whole site is redirected to https
RewriteEngine on

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Dario2 is offline  
Unread 17th Nov 2015, 09:32 AM   #5
Warrior Member
 
Join Date: 2015
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Re: How Do I Redirect This URL?
Share on: 
fb share twitter share gplus share more share

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.
Social Media Experts is offline  
Closed Thread


Bookmarks

Tags
redirect, url


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:29 PM.