Jump to content
Larry Ullman's Book Forums
abigail

Redirect 301 Used To Work, Now It Doesn't

Recommended Posts

My htaccess file works except the Redirects. They used to work.
sickle cell anemia is the one I added yesterday and it doesn't work.
back pain and heartburn used to work but now they don't.
sleep disorders and hemophilia are also in my cpanel Redirect and they work from there and are not really needed here.
But I don't want to do it through cpanel and I shouldn't have to.

Can you find what is wrong with my code?

Here is my entire htaccess file:
 

ErrorDocument 404 /404.shtml
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 500 /500.shtml
# this is to handle the 301s because I moved my files or renamed them
<IfModule mod_rewrite.c>
    RewriteEngine On
# 
# Following is because linkback from: #ningxiebayinzi.com/unique-hemophilia-treatment-fixes-your-illness-prevents-hemophilia
Redirect 301 /hemophilia-treatment /unique/hemophilia-treatment
#
# Following is because linkback from: #solutionssnoring.org/brussels-griffon-snoring/
#solutionssnoring.org/ayurvedic-treatment-for-sleep-disorder/
#solutionssnoring.org/category/1/page/3/
Redirect 301 /sleep-disorders-treatment.php /unique/sleep-disorders-treatment
#
# Following is renaming by canonical when in home so .php needs to be specified
#Redirect 301 /sickle-cell-anemia-treatment /sickle-cell-anemia-treatment.php
#Redirect 301 /back-pain-treatment /back-pain-treatment.php
#Redirect 301 /hiccups-heartburn-treatment /hiccups-heartburn-treatment.php
</IfModule>

Share this post


Link to post
Share on other sites

Well, that's embarrassing.
You are right and I even feel I have wasted your valuable time.
And the reason is cpanel didn't do the redirect and tech support was fixing it so that's why I had it commented out.
Thank you so much.

Share this post


Link to post
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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...

×
×
  • Create New...