Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

1
vote
1answer
57 views

How does this link redirect? [closed]

Following this link in a web browser http://www.esdc.gc.ca/en/cpp/post_retirement/eligibility.page eventually leads to https://www.canada.ca/en/services/benefits/publicpensions/cpp/cpp-post-retirement/...
1
vote
1answer
58 views

Can Google's “Change of address” drop my forwarded domain from the Google Canada search results and restore my rankings?

At the end of October 2016 I switched our hosting to managed WordPress from Linux hosting, which was under hosted under example.ca, but had example.com as primary domain. There was never any content ...
3
votes
2answers
111 views

Switching to https during a major redesign

I am planning a major overhaul of a well established domain (60 Moz DA). Aside from a platform change, content reduction/consolidation and branding update, the structure of the site will be ...
1
vote
1answer
1k views

htaccess to 301 redirect any URL that ends with 10 numbers

How can I setup .htaccess to redirect any URL that ends with 10 digits to home? For example, I want to redirect these URLs: example.com/abc/1234567890 -> example.com example.com/xyz/0001112223 -> ...
3
votes
1answer
100 views

Issue with 301 redirect to Index page only

I have a bunch of 301 redirects in my .htaccess for old pages, which work great. But a problem that's been plaguing me for years is that there's a lot of links out there to my old index page (index....
5
votes
1answer
4k views

How to bulk redirect URLs and replace one path segment?

I have several URLs in a WordPress website I would like to rewrite and then make a 301 redirect. URLs are of the form www.example.com/prodotto/something-after These URLs should be changed to www....
2
votes
1answer
1k views

How to stop other domains to 301 redirect to my website domain?

I found that someone is 301 redirecting his website domain to my website domain. fakedomain.com -> 301 redirects -> correctdomain.com Using the contact information found by whois query, I already ...
4
votes
1answer
278 views

Domain redirection with virtualhost on cpanel environment

With reference of answer by @TomBrossman here I need to redirect all domain versions to my default domain i.e. https://example.com/. By all domain versions I mean http://www, http:// and https://www. ...
5
votes
2answers
778 views

Is large scale of 301 redirects for URL change harmful for SEO?

I have changed the URL for a large portion of my website (150,000+ URLs) to follow a SEO-friendly structure like all lower-case and hyphenated URLs (earlier they were capitalized at places and had ...
1
vote
1answer
864 views

Redirect http www and non-SSL domains to HTTPS without multiple redirects?

I'm losing link juice in multiple redirects. I need to redirect all domain versions to my default domain i.e. https://example.com By all domain versions I mean http://www, http://, https://www and ...
6
votes
1answer
779 views

Should I use 301 or 302 for location-based redirects?

I'm setting up geo-redirects for my site and am unsure which redirect type to use. I've read many articles on this subject, but still do not have a clear answer. Here's the plan: Visitor lands on ...
3
votes
1answer
30 views

Redirection of page with # to a new page

I am trying to redirect http://www.example.com/#blog to http://www.example.com/blog in WordPress but it doesn't work since the /#blog part is considered part of the homepage. Did you encounter this ...
2
votes
1answer
272 views

301 subfolder redirect but want old URL to remain in address bar

I am subfolder redirecting from www.example.com to www.example.com/folder Here is my .htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} example.com [NC]...
3
votes
1answer
404 views

Google is indexing pages as HTTP despite 301 redirects from HTTP to HTTPS

on 9/23 we migrated our entire site to HTTPS. Almost 3 months later and Google has recently cached versions of http:// URLs in the index. We have an http:// sitemap that is live with 100% 301 ...
1
vote
1answer
244 views

WMT Change of Address not working

I have been asked by a client to install an ssl certificate on her website which I have done and all working well! I have sorted out the security plugin and the .htaccess file with correct 301 ...
2
votes
0answers
95 views

Mobile version of a website showing up on my desktop google search

I search certain keywords in desktop google search and mobile version of my website shows up, vise versa. I use some methods to solve this problem: use <link rel="alternate"> and <link rel="...
2
votes
2answers
628 views

How to redirect urls without cpanel access

My client is a CPA firm that had a website built with a CPA site builder company. They no longer want that site, but I have earned them good rank with many of their local keywords. We have designed a ...
3
votes
1answer
210 views

Why does my .htaccess file only partially force HTTPS and WWW?

I have the domain https://www.example.com and this is how I prefer that users reach my site as well, using both HTTPS and WWW. In my .htaccess file I try and force everyone to use this set up with ...
4
votes
2answers
484 views

Google App Engine 301 Redirect

I have a Google App Engine Java web app that I have setup with a custom domain from GoDaddy. The site can currently be reached at domain.com and www.domain.com. I am trying to have a 301 redirect ...
6
votes
1answer
563 views

301 Redirects From HTTP>HTTPS & Naked Domain > WWW not working on AT&T's 4G Network

I have a really odd 301 redirect failing issue that I can't seem to wrap my head around why. I have a netscaler device with responder policies that move http traffic onto https and naked domain ...
4
votes
1answer
102 views

Transferring .com to geo targeted TLD worth it?

I have a .com domain with a solid reputation and link profile. However, I am only targeting users in one specific country. Would a 301 redirect from my current .com domain to a new country specific ...
1
vote
0answers
346 views

Using Redirect 301/302 vs URL shortening service

I'm currently developing an aggregator site that will gather information across many many sites, typically this kind od applications put together relevant topics and display different information from ...
2
votes
2answers
318 views

Bingbot trying to access lower case urls when i am using a mixture of uppercase and lowercase

I have a website (dynamic real estate website) that has been up for nearly a year, all of a sudden Bingbots are trying to access completely lower case versions of the main pages resulting in 404 ...
5
votes
1answer
182 views

Will SERP penalties follow a 301 redirect?

My question is if a domain has some sort of SERP penalty and then that domains then uses a site wide 301 redirect to another domain will that domain take on the SERP penalties? Example: Site1.com (...
0
votes
2answers
115 views

How can I block my website in other countries?

Lets assume my website is mywebsite.com. I need to block the website for all the countries except India. But we need to handle the block gracefully, i.e. showing a page that right now the site is not ...
5
votes
3answers
461 views

301 redirects for /blog to blog subdomain not working

I just created a new subdomain for my blog so blog.example.com - it used to be www.example.com/blog so I am now trying to write 301 redirects from all my old /blog posts to the new blog.example.com ...
2
votes
1answer
383 views

Redirecting from www.example.com/blog to blog.example.com

I am about to switch my blog onto a subdomain blog.example.com so I can have two different WordPress themes installed. Currently, my blog resides at example.com/blog and I was wondering if there were ...
1
vote
1answer
29 views

Is there a time period for adding 301 redirects to preserve search engine rank?

Some URLs have changed on a site several weeks back and no 301 redirects were added to let search engines know that the content has moved locations. Is there a time period that the 301 redirects need ...
3
votes
1answer
23 views

301 redirecting blog links that don't start with `/blog` to the new blog location

I had a WordPress site that I moved folders - http://example.com to http://example.com/blog. The problem now is that many sites still link to my old blog links to /blog-post so when users click on ...
1
vote
1answer
300 views

Can a cross domain canonical link or a meta refresh be used for SEO instead of a 301 redirect?

I prefer to use a cross domain canonical instead of 301: <link rel="canonical" href="http://example.net/dirA" /> is it OK for SEO purposes? Is it better than meta refresh like this? <meta ...
1
vote
1answer
34 views

Bulk redirect old products pages

I tried reselling some products from a company and added all their products to my site After a year I desided to give up on it and want to remove all these products... Some of them still show up on ...
1
vote
1answer
163 views

What is the next step of creating a Django website after “startproject mySite”? [closed]

I would like to start web designing using django! but Whenever i type "django-admin.py startproject mySite" in cmd this code popup through notepad, Then what should I do? #!c:\users\crepin\envs\...
1
vote
2answers
160 views

Redirect old domain to new domain SEO friendly

We are about the release a new version of a website for one of our clients. His current website is on www.domain.be, the new domain with a complete different structure is located on www.newdomain.be ...
2
votes
1answer
586 views

Should i 301 the sitemap.xml from an old site to a new site when moving domain?

When moving a site to another domain is it a good idea to leave the sitemap.xml in place and not 301'ed to the new site so that google bot has a record of all the links on the old domain and when in ...
2
votes
1answer
169 views

301 redirect script being abused - for what purpose?

Background A few years ago we wrote a 301 redirect script that could be used by our clients to establish first party cookies before redirecting to their site (which in turn contained an iframe of ...
0
votes
2answers
145 views

Empty pages set up solely for redirects - harmful?

I have a client who is creating many (over 70 so far) blank webpages and redirecting them all to another, single page. They're doing this as a method to turn tracking URLs with custom campaign ...
2
votes
1answer
82 views

Moved Permanently based on the language value saved in user's cookie

I have two languages for my website. So, by default, English should be loaded as my default language. Hence, there is no page at the root of example.com, if the user visits example.com, he/she would ...
4
votes
2answers
2k views

htaccess redirect a page from root domain to subdomain same name page

on my Wordpress site, I need to http://example.com/page1/ redirect to http://site.example.com/page1/ I have tried this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond ...
1
vote
1answer
264 views

Old 301 Redirect Showing in Search Results Despite Its Removal

One our upcoming eCommerce site was put on a 301 redirect few months back, while the background work was being done. Now the website development has started and the 301 has been removed. We have ...
2
votes
1answer
129 views

301 redirect from high DA sites to current site

Currently, a high DA site is going to be decommissioned. Although separate entities/organization, but related topics, is it advisable to purchase the high DA site just to 301 redirect to the current ...
1
vote
1answer
55 views

SEO/Changing File Structure/301 Redirects On Changed URLs - Now What?

I have a fairly large website that has been around forever with hundreds of #1 and first page ranking pages. For many reasons, I have decided to pretty much completely overhaul my site structure and ...
5
votes
1answer
6k views

.htaccess how to redirect the contents of a directory to a subdirectory

I'm trying to redirect the contents of a directory that is placed at the top level of my website, to a subdirectory one level deep. I also need to exclude two files and a folder. Nothing I've tried so ...
3
votes
1answer
140 views

Migration from HTTP to HTTPS and changing URL structure at the same time

There are several reports of migration to HTTPS (using 301 redirects and HSTS) without an impact to rankings (no fluctations). Since that seems like changing URL structure I'm thinking to migrate ...
2
votes
1answer
53 views

.htaccess regex 301 redirect after changing site structure?

I`m trying to convert standard 301 redirects using regexp after several changes of categories structures. How to do this with regular expression? Old -> New http://www.example.com/cat1/cat2/cat3/...
4
votes
1answer
365 views

.htaccess 301 redirect dynamic URL with regex?

How to do this with regular expression? Old -> New http://www.example.com/cat1/cat2/cat3/tool-model-10 -> http://www.example.com/tool/tool-model-10 http://www.example.com/cat1/cat2/cat4/tool-...
3
votes
3answers
383 views

Does it hurt SEO to have a language redirect before 404?

I have a Django website with activated translation middleware for several languages. If a user tries to open example.com/abc this happens: the middleware detects the user language (from cookie, ...
0
votes
2answers
394 views

Bounce rate increased, page-per-session decreased on Google Analytics after moving to a new domain

We have a project, let's call it Foo, available at FooBar.com, but we also had another similar (but less successful) project called Bar, available at Bar.com So as you might have already noticed Bar ...
5
votes
2answers
1k views

301 Redirect Causes Insecure Connection Warning

My client's primary domain name is a variant of a commonly spelled name, for example domein.com. To avoid losing traffic, they also purchased domain.com. The live site is at https://domein.com. When I ...
3
votes
3answers
75 views

301 Redirects for Property Listing Website

So, I am working on a site which has property listings, after some of the properties are expired its giving 404 errors. From what I understand, good way to handle these expired pages is to 301 ...
3
votes
2answers
143 views

Switching domain from HTTPS to HTTP

I recently launched a new site on an already existing domain, using new hosting. The previous site utilized HTTPS, the new site does not (just HTTP). The problem I've ran into is that Google ...