Not allowing me 301 Redirect
-
I am trying redirect my old site to my new site, both on the same domain. For one reason or another, I am having a hard time redirecting the some of the old urls to the new site. Please let me know how I can fix this issue.
Below are the following old urls that are not allowing me to redirect:
<colgroup><col width="636"></colgroup>
| http://www.meliacaribetropical.com/press/melia-caribe-tropical-announces-fall-promotion.html |
| http://www.meliacaribetropical.com/press/melia-international-brand-overhaul.html |
| http://www.meliacaribetropical.com/spanish/accommodations/ |
| http://www.meliacaribetropical.com/spanish/dining/ |
| http://www.meliacaribetropical.com/spanish/entertainment/ |
| http://www.meliacaribetropical.com/spanish/events/ |
| http://www.meliacaribetropical.com/spanish/flintstones/ |
| http://www.meliacaribetropical.com/spanish/gallery/ |
| http://www.meliacaribetropical.com/spanish/gallery/beach.html |
| http://www.meliacaribetropical.com/spanish/gallery/dining.html |
| http://www.meliacaribetropical.com/spanish/gallery/pools.html |
| http://www.meliacaribetropical.com/spanish/press/ |
| http://www.meliacaribetropical.com/spanish/press/melia-caribe-tropical-announces-fall-promotion.html |
| http://www.meliacaribetropical.com/spanish/press/melia-international-brand-overhaul.html | -
Will do. I'll let you know what happens.
-
try using "redirect 301 old.html new.html" that is the traditional way using a 301 with an .htaccess file.
-
Hi Roger,
This is part of our .httaccess for the redirects.
I don’t understand why the destination page is different from the one is configured in the apache server.. Any ideas?
<virtualhost 192.168.200.25:80=""></virtualhost>
ServerAdmin ecommerce@sol-group.com
DocumentRoot /home/www/solgroup/americas/meliacaribetropical.com
ServerName www.meliacaribetropical.com
ServerAlias meliacaribetropical.com
Redirect permanent /spanish/services/ http://www.meliacaribetropical.com/en/services.html
Redirect permanent /entertainment/ http://www.meliacaribetropical.com/en/services.html
Redirect permanent /press/ http://www.meliacaribetropical.com/en/index.html
Redirect permanent /spanish/ http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/restaurantes/ http://www.meliacaribetropical.com/es/gastronomia.html
Redirect permanent /spanish/entertainment/ http://www.meliacaribetropical.com/es/servicios.html
Redirect permanent /spanish/services/ http://www.meliacaribetropical.com/es/servicios.html
Redirect permanent /es/spa/ http://www.meliacaribetropical.com/es/servicios.html
Redirect permanent /spanish/accommodations/ http://www.meliacaribetropical.com/es/habitaciones.html
Redirect permanent /spanish/spa/ http://www.meliacaribetropical.com/es/servicios.html
Redirect permanent /spanish/royal/ http://www.meliacaribetropical.com/es/servicio-real.html
Redirect permanent /spanish/dining/ http://www.meliacaribetropical.com/es/gastronomia.html
Redirect permanent /spanish/flintstones/ http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/galeria/ http://www.meliacaribetropical.com/es/visor.html
Redirect permanent /spanish/gallery/ http://www.meliacaribetropical.com/es/visor.html
Redirect permanent /es/reuniones-eventos/ http://www.meliacaribetropical.com/es/grupos.html
Redirect permanent /lowest-rate.php http://www.meliacaribetropical.com/en/index.html
Redirect permanent /es/los-picapiedra/ http://www.meliacaribetropical.com/es/index.html
Redirect permanent /gallery/beach.html http://www.meliacaribetropical.com/en/index.html
Redirect permanent /gallery/dining.html http://www.meliacaribetropical.com/en/gastronomy.html
Redirect permanent /gallery/pools.html http://www.meliacaribetropical.com/en/index.html
Redirect permanent /spanish/sitemap.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/galeria/playa.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/galeria/restaurantes.html http://www.meliacaribetropical.com/es/gastronomia.html
Redirect permanent /es/galeria/piscinas.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/prensa/ http://www.meliacaribetropical.com/es/index.html
Redirect permanent /spanish/gallery/beach.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /spanish/gallery/pools.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /spanish/gallery/dining.html http://www.meliacaribetropical.com/es/gastronomia.html
Redirect permanent /spanish/press/ http://www.meliacaribetropical.com/es/index.html
Redirect permanent /en/groups.html http://www.meliacaribetropical.com/en/groups.html
Redirect permanent /terms-condition.php http://www.meliacaribetropical.com/en/index.html
Redirect permanent /es/all_inclusive.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/terms-condition.php http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/prensa/family-facilities-amenities.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/outside-us-telephone-listing.php http://www.meliacaribetropical.com/en/index.html
Redirect permanent /spanish/press/melia-international-brand-overhaul.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /es/prensa/melia-international-brand-overhaul.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /press/family-facilities-amenities.html http://www.meliacaribetropical.com/en/index.html
Redirect permanent /press/melia-international-brand-overhaul.html http://www.meliacaribetropical.com/en/index.html
Redirect permanent /es/prensa/melia-caribe-tropical-announces-fall-promotion.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /spanish/press/melia-caribe-tropical-announces-fall-promotion.html http://www.meliacaribetropical.com/es/index.html
Redirect permanent /press/melia-caribe-tropical-announces-fall-promotion.html http://www.meliacaribetropical.com/en/index.html
-
Yes I understand that is a given. But the other hard 404s, which I did the exact same 301 strategy at the ones in the first post.
The succesfully 301s:
<colgroup><col width="636"></colgroup>
| http://www.meliacaribetropical.com/en/groups.html |
| http://www.meliacaribetropical.com/entertainment/ |
| http://www.meliacaribetropical.com/es/all_inclusive.html |
| http://www.meliacaribetropical.com/es/galeria/ |
| http://www.meliacaribetropical.com/es/los-picapiedra/ |
| http://www.meliacaribetropical.com/es/outside-us-telephone-listing.php |
| http://www.meliacaribetropical.com/es/restaurantes/ |
| http://www.meliacaribetropical.com/es/reuniones-eventos/ |
| http://www.meliacaribetropical.com/es/spa/ |
| http://www.meliacaribetropical.com/es/terms-condition.php |
| http://www.meliacaribetropical.com/gallery/beach.html |
| http://www.meliacaribetropical.com/gallery/dining.html |
| http://www.meliacaribetropical.com/gallery/pools.html |
| http://www.meliacaribetropical.com/lowest-rate.php |
| http://www.meliacaribetropical.com/press/ |
| http://www.meliacaribetropical.com/spanish/ |
| http://www.meliacaribetropical.com/spanish/services/ |
| http://www.meliacaribetropical.com/spanish/services/ |
| http://www.meliacaribetropical.com/terms-condition.php | -
Double check your file names wherever you are setting up the redirect. The first URL in your original post 301s to this URL:
http://www.meliacaribetropical.com/en/index.htmlmelia-caribe-tropical-announces-fall-promotion.html
See how there is more after the first .html? Looks like you might have just accidentally misspelled your end locations
-
Thanks for your response. I understand the these hard 404 are coming from other 404s. But how come I am able to redirect some of the 404s and not the ones above.
For example.
I was able to redirect http://www.meliacaribetropical.com/spanish/services/ (which is orginally 301 redirected from http://www.me-by-melia.com/spanish/services/) to http://www.meliacaribetropical.com/en/services.html/ succesfully.
I dont have access to .htacess file.
-
These are redirecting, but they are redirecting to a page that is not there. So the result of your 301 ends up as a 404.
Are you using your .htaccess file to perform 301s? If otherwise, let us know so that we can further address the problem. If you can, copy your .htaccess file contents here.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Multistore 302 Redirects
I noticed that every link on my site is being flagged up as a 302 temp redirect in Moz. The reason is because we have a multi store and use GeoIP to redirect anyone coming from their respective country. I'm guessing a 302 is the wrong way to do this - can anyone shed advice on the best practice for redirecting customers to geo-specific stores?
Intermediate & Advanced SEO | | moon-boots0 -
Will 301 Redirects Slow Page Speed?
We have a lot of subdomains that we are switching to subfolders and need to 301 redirect all the pages from those subdomains to the new URL. We have over 1000 that need to be implemented. So, will 301 redirects slow the page speed regardless of which URL the user comes through? Or, as the old urls are dropped from Google's index and bypassed as the new URLs take over in the SERPs, will those redirects then have no effect on page speed? Trying to find a clear answer to this and have yet to find a good answer
Intermediate & Advanced SEO | | MJTrevens0 -
Multiple 301 Redirect Query
Hello all, I have 2 301 redirects on my some of my landing pages and wondering if this will cause me serious issues. I first did 301 directs across the whole website as we redid our url structure a couple of months ago. We also has location specific landing pages on our categories but due to thin/duplicate content , we have got rid of these by doing 301's back to the main category pages. We do have physical branches at these locations but given that we didnt get much traffic for those specific categories at those locations and the fact that we cannot write thousands of pages of unique content content , we did 301's. Is this going to cause me issues. I would have thought that 301's drop out of serps ? so is this is an issue than it would only be a temporary one ?.. Or should I have 404'd the location category pages instead. Any advice greatly appreciated. thanks Peter
Intermediate & Advanced SEO | | PeteC120 -
301 Redirect / Canonical loop on home page?
Hi there, My client just launched a new site and the CMS requires that the home page goes to a subfolder - clientsite.com/store. Currently there is a redirect in place such that clientsite.com -> clientsite.com/store. However, I want clientsite.com to be the canonical version of the URL. What should I do in this case, given that there is now a loop between the redirected page and the canonical page?
Intermediate & Advanced SEO | | FPD_NYC0 -
What things should I consider if I am doing a 301 redirect on only 1 page/blog post?
I wrote a blog post on one of my websites and it got picked up by reddit and I got a bunch of nice backlinks and now that website got a nice boost overall, and especially that blog post page. I now wish I would have posted the article on a different website of mine. I would prefer if this other site was getting the traffic and the good backlinks that I've acquired. What are the pros and cons if I move the content over to my other website, and 301 redirect just that one article to the article location on my other website? The blog post I wrote almost instantly began ranking for certain terms in Google. Ideally I would like my other website to rank for those terms, but I realize there will be some differences as search engines look at the website as a whole and take many factors into consideration. I know there are tons of case studies and information about moving entire sites etc but I couldn't find much on this. Any advice, questions or comments would be greatly appreciated. Thanks,
Intermediate & Advanced SEO | | bradbowman
Brad0 -
Effect Of Restoring Old Website After Implementing 301 Redirects
After redesigning my old Drupal website and launching a new "improved" Wordpress version the new version is performing badly. Ranking is poor and conversions don't occur. I realize that my new design is bad (no call to action, poor structure, text heavy). New business inquiries have ceased. The site contains 450 pages. After spending $25,000 and a year of my life I see the new version is not an improvement! What would be the effect of reinstating the old version of the site and doing 301 redirects back to it? Would the old rankings be restored? I need to decide whether I should revert or focus on fixing flaws in the improved design. Any thoughts?? Thanks,
Intermediate & Advanced SEO | | Kingalan1
Alan0 -
Confusing 301 / Canonical Redirect Issue - Wizard Needed
I had two pages on my site with identical content. What I did was 301 redirect one page to the other. I also added canonical redirect code to the page that held the 301 code. Here is what I have: www.careersinmusic.com/music-colleges.aspx - this page was a duplicate and I needed it to resolve to:
Intermediate & Advanced SEO | | 4Buck
www.careersinmusic.com/music-schools.aspx Here is the code I used: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX music-colleges.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="music-colleges.aspx.vb" Inherits="music_colleges" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml"> http://www.careersinmusic.com/music-schools.aspx"/> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
music-colleges.aspx.vb
Partial Class music_colleges
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.Status = "301 Moved Permanently"
Response.AddHeader("Location", "http://www.careersinmusic.com/music-schools.aspx")
End Sub
End Class XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The problem:
For some reason, when the search “music colleges” is done in Google, I am #7. When the term “music schools” is done, I am around 119. I MUST be getting a penalty for some reason, I just cannot figure the reason. When perform well for one term and terrible for the next? All I can come up with is a duplicate content penalty or something along those lines. Also, music-colleges.aspx seems to still be in Googles index, even though the above 301 happened months ago. Thoughts? site:www.careersinmusic.com/music-colleges.aspx Any insight into this would be GREATLY appreciated. Many Thanks!0 -
301 vs. 404
If a listing on a website is no longer available to display is it better to resolve to a 301 redirect or use a 404? I know from an SEO point of view a 301 will pass on the link value, but is that as valuable as saying tto the user hey that page is no lonoger available try something else?
Intermediate & Advanced SEO | | AU-SEO0