Stack Exchange Network

Stack Exchange network consists of 175 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.

5
votes
1answer
3k views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
9
votes
3answers
5k views

Are drops in Google ranking common after switching to https?

About a week ago I made the switch to https on one of my sites. I'm positive I did everything right. Properly setup 301 redirects from http to https versions. Added and verified https version in ...
5
votes
2answers
1k views

GoDaddy's 301 redirect/forwarding has some weird random middleman URL, kills link juice?

I'm trying to use GoDaddy's 301 redirect, which is named as domain forwarding. I set up forwarding DomainA.example to DomainB.example as 301 "type". I noticed DomainA.example is still indexed in ...
10
votes
2answers
13k views

Retrieve Facebook Like count after changing URL structure for entire website

I just changed the URLs for my entire website. I have set up 301 permanent redirects for all old URLs to new URLs. Rel=canonical are set to new URLs. All Facebook Like buttons count have returned to 0....
4
votes
3answers
1k views

HTTP to HTTPS: Wait for new sitemap to be indexed?

Running HTTP and HTTPS versions of the site side-by-side. HTTP is canonical right now. Goal is to change that to HTTPS. Created a new site in Search Console and submitted a new sitemap 4 days ago. ...
2
votes
4answers
675 views

Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following: www.example.com www.example.com/folder sub.example.com sub.example.com/folder Basically, all URLs that are reachable without being intended to: ...
5
votes
1answer
14k views

Help with 301 redirect from subdomain to root domain

I need to forward existing subdomain links to the root domain as the subdomain no longer exists. I have tried so many different lines of code in my .htaccess file and can not get the redirect to work. ...
6
votes
1answer
634 views

Impact of migrating whole site from HTTP to HTTPS

We migrated our website to HTTPS everywhere and we have setup a 301 redirect on all the pages when the protocol is HTTP. However, one of the SEO experts who is helping us with all things SEO sent us ...
14
votes
3answers
9k views

What is the best way to redirect my naked domain?

I have example.com, which points to web server using A records, I want to redirect all traffic from www.example.com to example.com. As far as i know these are methods, 301 HTML redirect from www to ...
7
votes
1answer
4k views

SEO and multiple domains to same site

I have one website. I have two domain names that I want to point to the same site install. So whether you go to name-one.com or name-two.com you see the exact same site. Now, I can either set up ...
5
votes
1answer
2k views

Moving site from its own domain to sub directory or subdomain - updating Webmaster Tools

Is it possible to tell Google's Webmaster Tools that our site hosted on www. has moved to a sub folder or perhaps even a subdomain? I know this is possible by using 301's but would appreciate if ...
5
votes
2answers
807 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 ...
2
votes
2answers
863 views

Want to redirect a domain to a new domain using 301 or 302?

Firstly, I want to redirect an old domain to a new domain, (old site to new site). The old site has good ranking on Google, now if I redirect the site, I want to retain this site on the Google ...
7
votes
3answers
5k views

GoDaddy URL forwarding while keeping relative path

I'm hosting my website on Google App Engine and my domain name on GoDaddy. Google App Engine does not allow you to have naked URLs. So it doesn't allow you to have example.com but does allow you to ...
1
vote
2answers
226 views

What to do with random pages after a 301 redirect?

I did a standard 301 redirect for a domain, but the original domain has about 300 pages that have some strength. It doesn't make sense to make them all point back to the new home page because the ...
6
votes
2answers
5k views

How do I setup 301 redirects in Google Apps site?

I have just moved a website from a shared host to a Google Apps site. Is there a way I can setup 301 redirects on my Google Apps site so that old links (with a different URL) can be 301 redirected to ...
4
votes
3answers
3k views

Subfolder won't permenantly redirect to subdomain

Right now I have the following code to redirect all non-www URLs to www URLs: RewriteCond %{HTTP_HOST} ^example.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] Besides that redirection, I ...
3
votes
1answer
1k views

Should I change the URLs in the XML sitemap after 301 redirecting them?

I am using 301 redirects for all URLs. Should I change sitemap URLs now? The sitemap currently contains the following URLs: example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html ...
2
votes
2answers
380 views

Domain name made of keywords redirecting to main website's page

Let's say I have a website called books.com where I sell books. I've read on Redirecting different domains to your main site that it's not a bad idea to register another domain that does a 301 ...
2
votes
1answer
455 views

How do I map a (keyword rich) domain name to an existing website?

I am not experienced technical person, and still learning but will try to explain what I have done so far and what my query is. I have a (hypothetical) domain az-studios.com On that domain I have 3 ...
2
votes
1answer
593 views

How long before Google counts my .htaccess 301 redirect links?

I have a friend who had around 2000 visitors per day to his website before a web designer with no SEO knowledge changed all his URLs. I've used the Wayback Machine and Google Analytics to determine ...
2
votes
1answer
588 views

Duplicated content www on subdomain and SSL

I have a eCommerce based on OpenCart, but I was wondering about change my domain name for SEO purposes. For me the critical thing about my changes are the imminent possibility of domain change, I'm ...
2
votes
1answer
380 views

how to set 301 redirect in wordpress .htacces file

In continuation of my previously asked question preserve-search-engine-index-while-shifting-to-new-domain. The migration is being done in the word-press and we will have same server with same IP.Since ...
1
vote
1answer
896 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 ...
26
votes
4answers
62k views

Is there any way to redirect one domain to another via DNS settings keeping the path information?

For example, my domain is example.com and when someone navigates to example.com/sample/page.htm, I want it to redirect to test.com/sample/page.htm. I know that this can probably easily be done using ...
11
votes
3answers
302 views

What constitutes a “substantial, good-faith effort to remove the links”

We engaged the services of a 3rd party SEO consultant to assist us in managing our Meta data and to write regular blogs on our site http://cyberdesignworks.com.au Without our authorisation, the SEO ...
7
votes
2answers
27k views

How to redirect any URL to lowercase URL?

I am using: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) http://example.com/$1 [L,R=301] <...
9
votes
3answers
14k views

Should I redirect the site IP address to the domain name

I have been told by an SEO company to redirect the site IP to the domain using a 301 redirect. This will apparently improve the SEO ranking of the site. The site has a dedicated IP address. Is this ...
15
votes
3answers
25k views

Will putting the HTML from a 301 redirect page into a document perform the same function as a real 301 redirect?

In a web debugger, the html of a 301 redirect page shows up as: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </...
6
votes
2answers
5k views

How can my site detect mobile phones and switch visitors to a mobile Domain?

My Question is that when user enter the website: http://www.example.com then they will just go to automatically to http://www.example.mobi how can i do this .. is their any technique behind that. ...
0
votes
4answers
6k views

What's the best way to redirect from domain to subdomain?

I want to install my new site content on a subdomain like subdir.mydomainsite.com instead of the root domain. This is a new domain and not previous content to redirect. The root URL will be empty ...
5
votes
2answers
511 views

Managing redirections of 2 domains at CloudFlare for the same site

Let's say I have these two domains: example.com.uy example.uy My goal is to set a proper domain's forward according to SEO best practices using a 301 Redirect, in order to enforce my users to be ...
5
votes
2answers
419 views

Properly redirect a site to WWW and HTTPS

I recently found out a problem in .htaccess file in my website. When I started the site I did a 301 redirect to redirect all non-www and http request to www with https. I added this lines of code and ...
4
votes
1answer
4k views

Canonicalization for www/non-www URLs and IP/domain on a Windows server

I have checked my website using this SEO tool and the results report 2 issues: Test your site for potential URL canonicalization issues. Canonicalization describes how a site can use slightly ...
4
votes
1answer
389 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-...
4
votes
1answer
118 views

Moving folder's content to a new domain, what SEO steps to take?

So, we have a functionality on example.com/folder that we decided to make as separate site and we're in need of moving it to a new domain (brand it)... This is what I'm going to make SEO wise (...
2
votes
3answers
356 views

Does purposely linking to an invalid URL and then using 301 affect SEO?

On a section of my site, I am currently using .htaccess rewrites to put the ID as part of the URL instead of in the query, like so: RewriteRule ^([a-z_]+)?/?tours/([0-9]+)/(.*) /tours/tour_text.php?...
2
votes
1answer
226 views

Is it a good idea to register multiple domains pointing to a single website

We have a main domain or primary domain (say xyz.com) on which we have our website hosted. For the sake of business/trademark we would like to book other domain with the same name but different tlds (...
2
votes
1answer
641 views

Why Google Webmaster Tools list HTTP status 303 as crawl error?

There is another interesting question about status 303 and seo here but it does not answer me why status 303 appears now in GWT in the crawl errors section since end of January. In my understanding ...
2
votes
1answer
530 views

Do you get referrer data from HTTPS > HTTP > 301 Redirect > HTTPS site?

Referrer data is lost when a HTTPS site links to a HTTP site. If you implement a 301 rediect from your HTTP site to your HTTPS site do you get referrer data? Referring Site | Your Site ...
2
votes
1answer
161 views

.htaccess and permanent redirection with a special condition

I have a WordPress website hosted on Bluehost which contains the following URL pattern: http://www.example.com/2017/01/30/sample-post/ I wanted to permanent redirect it to use this: http://www....
6
votes
2answers
989 views

Moving from Subdirectory to Subdomain structure

I have a website (powered by Rails/Postgres and nginx) where I had setup a blog and a coupons section as: http://examplecom/blog/ http://example.com/coupons/ Blog is powered by wordpress and ...
6
votes
2answers
6k views

How long should I keep 301 redirecting pages from a deprecated domain?

I had an old domain that I have deprecated, but 301 redirected all results from it to my new site. The new site is now receiving a decent amount of traffic, but I don't know if it's 301 redirected ...
5
votes
4answers
1k views

Is it ok to 301 redirect deleted pages to the homepage in order to preserve link juice? — Even if the homepage is unrelated content?

I'm about to delete 40+ pages that have quality link juice (I'm deleting them for copy write issues). I'd prefer not to do a 404 header on all of them, because I want to preserve inbound links to ...
5
votes
2answers
2k views

redirecting https to http

RewriteEngine on RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301] # WordPress Defaults RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} ...
5
votes
2answers
369 views

Implement lots of redirects (a million) without slowing down the site

What's the best way to redirect 1,000,000 unique URLs to another 1,000,000 unique URLs? These pages are all combinations of multiple search filters and queries. We're migrating the site to cleaner ...
4
votes
2answers
857 views

Redirect subdomain (weblog) to new domain without access to .htaccess

I have a blog that has PR 1 on a subdomain aaaa.domain.com of a blog server domain.com. Now I want to buy a domain newdomain.com and I want to tell google webmaster to redirect the old subdomain to ...
4
votes
1answer
513 views

Domain Masking / Cloaking?

I don't know what the correct term is for this but I'd like to redirect exampleA.com to exampleB.com without changing the URL in their address bar at all. So for example: User visits: exampleA.com ...
4
votes
2answers
99 views

Redesigning an old site, structure change etc

I have an old site built in 2006, it has around 200 pages and 500 pictures. Every single page is of course indexed as well as images. It is very well ranked for targeted keywords and I receive good ...
4
votes
3answers
1k views

Getting 301 redirect error in Google Webmaster Tools while using “change address”

So I'm moving my website from one domain to another. In this process I'm using the "change address" function in Google Webmaster Tools on my old-domain.com, "switching" it to / choosing my verified ...