abigail 16 Posted January 16, 2014 Report Share Posted January 16, 2014 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> Quote Link to post Share on other sites
Larry 429 Posted January 17, 2014 Report Share Posted January 17, 2014 You have # in front of the ones that don't work. In .htaccess # is a comment, so those lines are commented out. Quote Link to post Share on other sites
abigail 16 Posted January 18, 2014 Author Report Share Posted January 18, 2014 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. Quote Link to post Share on other sites
Larry 429 Posted January 22, 2014 Report Share Posted January 22, 2014 Happens to the best of us, Abigail! No problems at all. Glad it's working now. Quote Link to post Share on other sites
Recommended Posts
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.