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
-
301 Redirects for Multiple Language Sites in htaccess File
Hi everyone, I have a site on a subdomain that has multiple languages set up at the domain level: https://mysite.site.com, https://mysite.site.fr , https://mysite.site.es , https://mysite.site.de , etc. We are migrating to a new subdomain and I am trying to create 301 redirects within the htaccess file, but I am a bit lost on how to do this as it seems you have to go from a relative url to an absolute - which would be fine if I was only doing this for the english site, but I'm not. It doesn't seem like I can go from absolute url to an absolute url - but I could be wrong. I am new to editing the htaccess file - so I could definitely use some advice here. Thanks.
Intermediate & Advanced SEO | | amberprata0 -
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 -
301 Redirect and Loss of PA and DA
Mozzers, http:itsgr82bme.com Old domain homepage had a DA of 24 and a PA of 36 Currently redirected to http://thekidstime.com Homepage shows a DA of 6 and a PA of 1. That is a significant loss of authority. I thought a 301 is supposed to be better than that. What gives? What are the next steps, asking the old backlinks to update their links? Thanks for your help, Matt
Intermediate & Advanced SEO | | matt.nails0 -
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 to do about old urls that don't logically 301 redirect to current site?
Mozzers, I have changed my site url structure several times. As a result, I now have a lot of old URLs that don't really logically redirect to anything in the current site. I started out 404-ing them, but it seemed like Google was penalizing my crawl rate AND it wasn't removing them from the index after being crawled several times. There are way too many (>100k) to use the URL removal tool even at a directory level. So instead I took some advice and changed them to 200, but with a "noindex" meta tag and set them to not render any content. I get less errors but I now have a lot of pages that do this. Should I (a) just 404 them and wait for Google to remove (b) keep the 200, noindex or (c) are there other things I can do? 410 maybe? Thanks!
Intermediate & Advanced SEO | | jcgoodrich0 -
After the 301 redirect
Hi all, A quick question, after you have setup your 301 re-directs in .htaccess - is it necessary to keep your content in the original domains directory? My thinking is that requests do get as far as referencing the directory, thus it should be safe to delete all the files on the old domain? Thanx!
Intermediate & Advanced SEO | | gazza7770 -
301 Redirect question
Which is the best way to set up the 301 redirect on my main home page? http://horsebuggy.com to http://www.horsebuggy.com Or does it make a difference? Boodreaux
Intermediate & Advanced SEO | | Boodreaux0 -
301 Redirect shenanigans.
So our website (www.FrontlineMobility.com) Has a canonical link redirect to the non www. version. However when I put in website.com it comes up with a small list of links and says this site links to www.website.com. So I'm curious if I used to wrong canonical linking method( that is the method I tried and I placed it in the Head Tags.) I greatly appreciate any assistance in this matter ^.^
Intermediate & Advanced SEO | | FrontlineMobility0