http-status-code-301

.htaccess remove duplicate part of a URL

折月煮酒 提交于 2021-01-28 17:35:55
问题 some bug in my online catalog SEF URL generation created a situation where some category slug is added to the URL twice. to fix this i would like to use .htaccess to remove the this part of the URL and have the whole URL shift up one level including URL's which also include a product under them. the duplicate occurrence is of the sub-category painting-tools under the category tools so the wrong URL looks like this: /store/items/catalog/tools/painting-tools/painting-tools or /store/items

How to properly make 301 redirect

安稳与你 提交于 2021-01-28 00:15:26
问题 I have over 50 html pages that I'm going to move to different folders in the same domain. How to properly make 301 redirects for each one? Some people said to place the redirect in meta html tags. Like this <meta http-equiv="refresh" content="0; url=http://example.com/" /> Some other people are saying to make it inside the .htaccess file, I'm not sure what's the best way? My goal is to redirect the old URLs to the URLs without losing the page rank in Google. 回答1: In most instances, a 301

How do I undo the effects of a 301 permanent redirect, and get the domain to point at the original subdomain again?

丶灬走出姿态 提交于 2020-06-29 03:33:15
问题 I've made a grave error, and I cannot seem to undo it! A customer all the sudden wanted a website (that was on hold) to go online asap. Easy problem to solve, I just remove the redirect in cPanel. Or so I thought... Then I saw, that the redirect for that particular site was a 301 permanent redirect, to a generic 404 site on another domain. Note: We have a reseller solution, and host several sites as subdomains in the same cPanel. I deleted the redirect in cPanel, but the site still redirects

How to set all pages of a subdomain to redirect to a single page?

两盒软妹~` 提交于 2020-02-16 06:26:28
问题 Let's say my domain name is website123.com and I have a subdomain of my.website123.com I've deleted the "my" subdomain from the site and want to make sure that anyone that goes to any page with a my.website123.com URL is redirected to the main www.website123.com URL. The "my" subdomain has a ton of pages of it, so I need to make sure that regardless of which page a user goes to on the "my" subdomain, that they're redirected to the site's main index page. I was thinking to get this

Redirect all pages of one TLD to another

半腔热情 提交于 2020-02-14 10:49:01
问题 \I'm darn nearly pulling my hair out trying to figure this out tonight. I'm hoping someone can help me out. I have 3 TLD's for a site, similar to the following: www.domain.com www.domain.org www.domain.net They are all located in the same directory. I would like to set up 301 redirects so that all pages of the .org and .net point to their respective pages at the .com location. For example, domain.net/topic/page as well as www.domain.net/topic/page should permanently redirect to www.domain.com

Redirect all pages of one TLD to another

那年仲夏 提交于 2020-02-14 10:47:28
问题 \I'm darn nearly pulling my hair out trying to figure this out tonight. I'm hoping someone can help me out. I have 3 TLD's for a site, similar to the following: www.domain.com www.domain.org www.domain.net They are all located in the same directory. I would like to set up 301 redirects so that all pages of the .org and .net point to their respective pages at the .com location. For example, domain.net/topic/page as well as www.domain.net/topic/page should permanently redirect to www.domain.com