Problem w/ 301 Redirect
-
Here is how I did the configuration of the redirects:
I don’t understand why the destination page is different from the one is configured in the apache server. Any ideas?
For example:
http://www.meliacaribetropical.com/spanish/entertainment/ is being already being 301 redirected to a 404 page (http://www.meliacaribetropical.com/es/index.htmlentertainment/) that does not exist on the Apache server. As you can see, the url was incorrectly written.
Another occurrence from the spreadsheet is http://www.meliacaribetropical.com/spanish/gallery/beach.html, which is also being 301 redirected to a 404 page (http://www.meliacaribetropical.com/es/index.htmlgallery/beach.html). This is causing a hard 404 page.
Here is my .httpaccess file:
<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
-
This is likely your problem:
Redirect permanent /spanish/ http://www.meliacaribetropical.com/es/index.html
Change to:
Redirect permanent /spanish/ http://www.meliacaribetropical.com/es/
Your first one was saying that anything under /spanish/ should be directed to /es/index.html, which then was adding /index.html to all your other rules due them calling both the /spanish/ folder rule & their unique one.
-
Odd that some would work and others not.
The /spanish/entertainment/ is definitely a 301 to /es/servicios.html but I can see /es/galeria/piscinas.html is a meta refresh to the /es/index.html page.
I don't think it helps that you seem to have at least one duplicated rule for the same url (search for spanish/services in your htaccess)
The rule you've got looks okay from what I can see of it. If you do figure it out, please post the solution.
I'd clear all the redirects and build them one at a time to see what's causing this - also perhaps use RedirectMatch or RewriteRule with some regex to make things a bit tidier.
-
Try looking at the pages below, we are currently using a meta reshresh at 0 seconds. We're still trying to find out how to do a 301 redirect.
<colgroup><col width="636"></colgroup> <colgroup><col width="342"></colgroup> <colgroup><col width="64"></colgroup>
| OLD URL | 301 To: | Status |
| http://www.meliacaribetropical.com/en/groups.html | http://www.meliacaribetropical.com/en/groups.html | done |
| http://www.meliacaribetropical.com/entertainment/ | http://www.meliacaribetropical.com/en/services.html | done |
| http://www.meliacaribetropical.com/es/all_inclusive.html | http://www.meliacaribetropical.com/es/index.html | done |
| http://www.meliacaribetropical.com/es/galeria/ | http://www.meliacaribetropical.com/es/visor.html | done |
| http://www.meliacaribetropical.com/es/los-picapiedra/ | http://www.meliacaribetropical.com/es/index.html | done |
| http://www.meliacaribetropical.com/es/outside-us-telephone-listing.php | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/es/restaurantes/ | http://www.meliacaribetropical.com/es/gastronomia.html | done |
| http://www.meliacaribetropical.com/es/reuniones-eventos/ | http://www.meliacaribetropical.com/es/grupos.html | done |
| http://www.meliacaribetropical.com/es/spa/ | http://www.meliacaribetropical.com/es/servicios.html | done |
| http://www.meliacaribetropical.com/es/terms-condition.php | http://www.meliacaribetropical.com/es/index.html | done |
| http://www.meliacaribetropical.com/gallery/beach.html | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/gallery/dining.html | http://www.meliacaribetropical.com/en/gastronomy.html | done |
| http://www.meliacaribetropical.com/gallery/pools.html | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/lowest-rate.php | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/press/ | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/spanish/ | http://www.meliacaribetropical.com/es/index.html | done |
| http://www.meliacaribetropical.com/spanish/services/ | http://www.meliacaribetropical.com/en/services.html | done |
| http://www.meliacaribetropical.com/spanish/services/ | http://www.meliacaribetropical.com/es/servicios.html | done |
| http://www.meliacaribetropical.com/terms-condition.php | http://www.meliacaribetropical.com/en/index.html | done |
| http://www.meliacaribetropical.com/es/galeria/piscinas.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/es/galeria/playa.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/es/galeria/restaurantes.html | http://www.meliacaribetropical.com/es/gastronomia.html | |
| http://www.meliacaribetropical.com/es/prensa/ | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/es/prensa/family-facilities-amenities.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/es/prensa/melia-caribe-tropical-announces-fall-promotion.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/es/prensa/melia-international-brand-overhaul.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/press/family-facilities-amenities.html | http://www.meliacaribetropical.com/en/index.html | |
| http://www.meliacaribetropical.com/press/melia-caribe-tropical-announces-fall-promotion.html | http://www.meliacaribetropical.com/en/index.html | |
| http://www.meliacaribetropical.com/press/melia-international-brand-overhaul.html | http://www.meliacaribetropical.com/en/index.html | |
| http://www.meliacaribetropical.com/spanish/accommodations/ | http://www.meliacaribetropical.com/es/habitaciones.html | |
| http://www.meliacaribetropical.com/spanish/dining/ | http://www.meliacaribetropical.com/es/gastronomia.html | |
| http://www.meliacaribetropical.com/spanish/entertainment/ | http://www.meliacaribetropical.com/es/servicios.html | |
| http://www.meliacaribetropical.com/spanish/events/ | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/flintstones/ | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/gallery/ | http://www.meliacaribetropical.com/es/visor.html | |
| http://www.meliacaribetropical.com/spanish/gallery/beach.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/gallery/dining.html | http://www.meliacaribetropical.com/es/gastronomia.html | |
| http://www.meliacaribetropical.com/spanish/gallery/pools.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/press/ | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/press/melia-caribe-tropical-announces-fall-promotion.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/press/melia-international-brand-overhaul.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/royal/ | http://www.meliacaribetropical.com/es/servicio-real.html | |
| http://www.meliacaribetropical.com/spanish/sitemap.html | http://www.meliacaribetropical.com/es/index.html | |
| http://www.meliacaribetropical.com/spanish/spa/ | http://www.meliacaribetropical.com/es/servicios.html | | -
The one example I looked at: /spanish/entertainment/ is being redirected to es/servicios.html
That's what your htaccess file redirect does
Redirect permanent /spanish/entertainment/ http://www.meliacaribetropical.co...
Not sure I see the problem 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
-
After 301 redirect
hello i do after 301 redirect from old domain to new since 3 month ago my qa : should i replace the backlinks links to new doamin Or the he backlinks in the old link will works
Intermediate & Advanced SEO | | cristophare790 -
301 redirect hops from non-https and www
It's best practice to minimize the amount of 301 redirect hops. Ideally only one redirect hop. It's also best practice to 301 redirect (or at least canonical) your non-https and/or your non-www (or www) to the canonical protocol/subdomain. The simplest (and possibly the most common) way to implement canonical protocol/subdomain redirects is through a load balancer or before your app processes the request. Both of which will just blanket 301 to the canonical domain/protocol regardless if the path exists or not In which case, you could have: Two hops. i.e. hop #1 http://example.com/foo to https://example.com/foo, hop #2 https://example.com/foo to https://example.com/bar 301 to a 404. Let's say https://example.com/dog never existed, but somebody for whatever reason linked to it (maybe a typo). If I request https://www.example.com/dog, the load balancer would 301 to a 404 page. Either scenario above should be fairly rare. However, you can't control how people link to you. Should I care about either above scenario? I could have my app attempt to check if the page exists before forwarding, but that code could be complicated.
Intermediate & Advanced SEO | | dsbud0 -
Have You 301 Redirected Domain A to Domain B ?
I only have two questions.... Approximately when did you do it (year is close enough)? Did the rankings of Domain B go up? Any other information that you care to share will be appreciated. Thank you!
Intermediate & Advanced SEO | | EGOL0 -
Can 301 redirects that are inaccurate cause Google suppressions on rankings?
In an interesting study by DeganSEO titled 'Negative Impact of 301 Redirects - A Case Study' a drop of rankings was observed when popular blog posts were redirected to product pages. One hypothesis is that the suppression is due to topical difference between the redirected pages (blog posts) and the target page. The topical difference issue is an interesting one when you consider it in the context of website migrations. We always recommend that 301 redirects are done at a page level and that if an equivalent page doesn't exist to just 301 anyway but to the most logical page. If you think about it Google are likely to frown on this because a) it's not a good experience for the user - 404 would be more accurate for them
Intermediate & Advanced SEO | | QubaSEO
b) it's lazy - if you have good content that has gained authority/trust then create the same content on the new site don't trytp pass that to an entirely different page. Thoughts? Experiences?0 -
Too many 301 redirects?
Hey, My company currently has one chief website with about 500-600 other domains that all feature the same material as the chief website. These domains have been around for about 5 years and have actually picked up some link traffic. I have all of these identical web-pages utilizing rel=canonical but I was wondering if I would be better served, from SEO purposes, to 301 redirect all of these sites to their respective pages on our chief website? If I add 500 301 redirects, will the major search engines consider this to be black-hat link-building even though the sites are related and technically already feature the same content? For an example, the chief website is www.1099pro.com and I would 301 redirect the below sites to the chief site: 1099softwarepro.com 1099softwarepro.info 1099softwarepro.net 1099softwarepro.biz 1099softwareprofessionals.com 1099softwareprofessionals.info ...you get the point
Intermediate & Advanced SEO | | Stew2220 -
Double Forward Slash in URL //
My client is using double forward slahes in URL like this "//" is this affecting SEO?
Intermediate & Advanced SEO | | yanaiguana1110 -
Restructuring/Removing 301 Redirects Due To Newly Optimized Keywords
Just to be clear, this is for one unique page on a website. Also, please see my diagram attached. Let's say that a page's URL was originally /original. So, you optimize the page for a new keyword (keyword 1), and therefore change the URL to /keyword-1. A 301 redirect would then be placed... /original > /keyword-1 However, let's say 6 months down the road you realize that the keyword you optimized the page for (keyword 1) just isn't working. You research for a new keyword, and come up with (keyword 2). So, you'd like to rename the page's URL to /keyword-2. After placing a redirect from the current page (keyword 1) to the 'now' new page (keyword 2), it would look like this... /original > /keyword-1 > /keyword-2 We know that making a server go through more than one redirect slows the server load time, and even more 'link-juice' is lost in translation. Because of this, would it make sense to remove the original redirect and instead place redirects like this? /original > /keyword-2 /keyword-1 > /keyword-2 To me, this would make the most sense for preserving SEO. However, I've read that removing 301 redirects can cause user issues due to browsers caching the now 'removed' redirect. Even if this is ideal for SEO, could it be more work than it's worth? Does anyone have any experience/input on this? If so, I greatly appreciate your time! oDvLl.jpg
Intermediate & Advanced SEO | | LogicalMediaGroup1 -
Does Google Index an Alert Div w/Delayed Hide
We have a div at the top of a client's the page that displays an alert to the user. After 30 seconds it is rendered hidden. Does Google index this? Does Google take this into account when it ranks the page?
Intermediate & Advanced SEO | | WEOMedia0