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 -
301 Redirect from query string to new static page
If i want to create a redirect from a page where the slug ends like this "/?i=4839&mid=1000&id=41537" to a static, more SEO friendly slug like "/contact-us/", will a standard 301 redirect suffice? Thanks, Nails
Intermediate & Advanced SEO | | matt.nails0 -
301 Redirects to relative URLs not absolute a problem?
Hi we recently did a migration and a lot of content changed locations see: https://d.pr/i/RvqI81 Basically, the 301 goes to the correct location but its a relative URL (as you can see from the screenshot) rather than absolute URL. Do you think this is a high priority issue from an SEO standpoint, should we get the developer to change the redirects to absolute? Cheers.
Intermediate & Advanced SEO | | cathywix0 -
301 Redirects... Redirect all content at once or in increments?
Hello, I have been reading a lot about site migration and 301s and sometimes get confused with conflicting suggestions from different sources... So, in a site migration. Should I 301 redirect all old URLs to the news at once or little by little? I've see this Google handout that suggests doing it all at once (minute 13)
Intermediate & Advanced SEO | | Koki.Mourao
https://plus.google.com/u/0/events/cfco632lor7bl55j3tg1g8332l0 But also have read the opposite in other forums...0 -
Should You Use 301 Redirects When Switching To A Secure SSL Server?
Hi, our client has switched from a non-secure server to a secure (SSL) server.. but the non secure pages still exist, i.e. http://www.stainlesshandrailsystems.co.uk/balustrade-systems.html (non-secure)
Intermediate & Advanced SEO | | Webpresence
https://www.stainlesshandrailsystems.co.uk/balustrade-systems.html (secure) We assumed that we should 301 redirect the http pages to the new https pages using the following htaccess rule; RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L] HOWEVER! both of the above pages show the same Page Authority (PA) and Pagerank (PR).. does this mean that they are being seen as the same page, do we really need to employ 301 redirects? Many thanks in advance, much appreciated. 🙂 Lee1 -
Worpress Redirect
I am migrating a WP site from one domain to another for a client. WP is installed at the root. Typically I would simply issue a 301-redirect for the entire domain, however, in this case, the client wants the content in 2 specific subfolders to remain live on the old site and have everything else redirected. Example: olddomain.com/subfolder-1/ olddomain.com/subfolder-2/ Question: what would the the htaccess code look like to pull this off? Thanks!
Intermediate & Advanced SEO | | SCW0 -
For a mobile website, is it better to use a 301 vs. a 302 redirect?
We are vetting a vendor for our mobile website and they are recommending using a 302 redirect with rel=canonical vs. a 301 redirect due to 301 caching issues. All the research I've done shows that a 301 is by far the better way to go do to proper indexing, which in turn will enhance our page authority. Thoughts on why a 302 would be a better fit than a 301 on our mobile site?
Intermediate & Advanced SEO | | seohdsupply1 -
Can some brilliant mozzer out there teach a moron/newbie like me how to 301 redirect several URL's I have?
Okay - I am a supermodel. I look pretty. My legs are amazing. My cheekbones are high. But when it comes to 301 redirects I am the ugliest supermodel on the block. Crap, here is the truth: I am not even a supermodel. I am just a middle-aged, goofy looking dude who is a newbie to fixing websites. I have inherited several sites from a friend and I have been helping by creating solid contextual links internally and externally for a while. But, when Roger the wondrous SEOMoz robot talks to me, he says, "oops, it looks like your foolish freak self has a site that has both a www. and a non-www, which can create competition for yourself." What do I do when he says that? I just whisper a "thank-you" but gently press the skip this step button and go on with my life because I do not know how to make my non-www.'s redirect into the www. sites... Now, I have sort of asked this question on the site before, but I was answered by someone who does not understand my level of ignorance. any use of the word canonical or just put this lfwjkshj.htp/php inside the left ear of your mom, does not tell me anything so, is there any willing and kind soul who can walk me through redirecting several of my sites to their proper home - kind of like Carl Chubbs Weathers did for Happy Gilmore in that Academy Award winning classic? Thanks for the help in advance best, dumbhead
Intermediate & Advanced SEO | | creativeguy0