Questions tagged [redirects]

A page, link or command that points URL requests to another URL in the world wide web. Redirects can be either server-side or client-side through the use of javascript.

Filter by
Sorted by
Tagged with
125 votes
5 answers
238k views

Moving from HTTP to HTTPS in Google Search Console

I'm moving from HTTP to HTTPS for my entire site. The site is currently added to Google Search Console (formerly Google Webmaster Tools) as www.example.com and all the pages are indexed without using ...
user avatar
  • 1,441
28 votes
4 answers
71k 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 ...
user avatar
  • 825
20 votes
2 answers
10k views

What are the Consequences for using Relative Location Headers?

According to the spec, Location headers used in a redirect require a server name HTTP/1.1 301 Moved Permanently ... Location: http://example.com/foo/baz/bar However, in 2012, most web browsers will ...
user avatar
16 votes
4 answers
5k views

Can the files robots.txt and sitemap.xml be dynamic through an .htaccess redirect?

I have a multilanguage and multidomain site. It runs through a unique CMS installation (Drupal), so I have a single root directory. So if I have a static robots.txt, there I only can show the files ...
user avatar
  • 405
16 votes
4 answers
1k views

ecommerce item deleted by user, 301 redirect to HOME PAGE or 404 not found?

I know this question is someway similar to this one where they recommend using 404, but after reading this other one where they suggest to use 301 when changing site URLs (in the specific case was due ...
user avatar
  • 6,360
15 votes
2 answers
3k views

Is it better to have an ErrorDocument 404 redirect back to the homepage or a standard 404 error page?

We run an ecommerce site that was setup by a third party ecommerce software provider, basic shop with product pages, basket and checkout. The third party vendor set up the htaccess file so that if a ...
user avatar
15 votes
2 answers
2k views

Proper status code for language redirection (301, 302, … 307)?

I have build a websites with multiple languages. The URLs look like: http://www.example.com/en/ http://www.example.com/de/ If the user access the main domain http://www.example.com/ the web server ...
user avatar
  • 463
14 votes
6 answers
8k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
user avatar
  • 243
12 votes
2 answers
44k views

What causes "redirect notice" in Google search?

Occasionally, I get "Redirect Notice" pages when I click on some Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google ...
user avatar
  • 372
11 votes
5 answers
544 views

"Thank you for posting. Please stand by while you are redirected." Needed?

Thank you for posting. Please stand by while you are redirected. If you are not automatically redirected, please click here. You're probably familiar with messages like these, especially ...
user avatar
11 votes
2 answers
1k views

Homemade URL shortener redirect conflicting with 301 redirects

I have a website which was originally built using classic ASP. About a year ago it was rewritten in PHP. This caused file extensions to change and some pages were moved to new locations within the ...
user avatar
  • 85.8k
10 votes
2 answers
414 views

If I have a page that gets a lot of StumbleUpon traffic, will that traffic fall if I move it?

Say I have a page that gets a lot of traffic via StumbleUpon. It's an ancient page, and I might want to move it to another site as part reorganizing my old site. I intend to keep the content identical,...
user avatar
  • 8,468
10 votes
3 answers
1k views

How Can I Debug a Redirect Error in Google Search Console?

I'm getting a pesky redirect error from my Google Search Console: Sadly, the report above doesn't give me much information as a developer about what's causing the error. When I click on Inspect URL, ...
user avatar
  • 201
9 votes
3 answers
2k views

Why do browsers know to lookup the `www` record if DNS query for @ gets NXDOMAIN?

Description If I dig for businessbrief.xyz, I get no results, but the subdomain www returns an address. Entering businessbrief.xyz into any browser's address bar goes to a valid web address. Data Note ...
user avatar
9 votes
3 answers
6k 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 ...
user avatar
  • 93
9 votes
2 answers
1k views

Apache - How to NOT log 301 redirects

I recently re-designed my site and a lot of the URLs changed. I have already setup rewrite rules in Apache to redirect old URLs to the new URLs. That's all working. My question is, how can I get ...
user avatar
9 votes
2 answers
509 views

I changed my domain name. How to keep my ranking and traffic?

Two weeks ago I changed my Blogger domain name from "energieshow.blogspot.com" to "lifeskills-coach.com". It works and redirects perfectly. But since I was afraid of losing my ranking and traffic in ...
user avatar
8 votes
10 answers
3k views

Is there a safe way to redirect traffic from a dozen old websites to a new (unrelated) website?

Over the years I've built over a dozen unsuccessful sites. They get 10-100 visitors per day each. The topics include all kinds of random things - recipes, hiking tips, military equipment, gym bloopers,...
user avatar
  • 81
8 votes
3 answers
4k views

How do I temporarily disable a website?

I have to take a website down for a month, which is the least intrusive way to keep achieved SEO optimizations? should I just add in apache config: <Directory /root-directory-of-web-site-to-be-...
user avatar
  • 233
8 votes
3 answers
2k views

When you move a site via a 301 redirect should you setup a robots.txt disallowing robots to crawl the old address?

A site I am working on moved a subdomain to another subdomain via a 301 redirect. However when checking robots.txt of the old subdomain, it has a robots.txt which disallows search engine web crawlers ...
user avatar
  • 339
8 votes
1 answer
6k views

Redirecting with Namecheap removes the path and sends all URLs to the home page

I'm having trouble redirecting www to non-www links using Namecheap. I added a URL Redirect Record with a host of www and a value of http://example.com which works fine for the main (and mostly only ...
user avatar
8 votes
3 answers
910 views

Is it a problem (e.g. for Google) when my site has no root page?

I have a multi-lingual site, which contains languages in this manner: http://www.example.com/en/ http://www.example.com/de/ http://www.example.com/fr/ To avoid duplicate links, is it ok not to have ...
user avatar
  • 183
8 votes
3 answers
261 views

I want to test major changes on my website without hurting SEO

I want to replace all my website files for new ones on the server and to test if they work alright but I don't want to be crawled while this is happening or if I am, I don't want the crawler to be ...
user avatar
  • 107
8 votes
1 answer
34k views

How can I redirect port 80 to a different port with Apache?

I have tomcat running on port 8080 and want a particular URL, lets say http://example.com/app, to actually point to example.com:8080/app I have other content on the website that should remain ...
user avatar
8 votes
3 answers
2k views

When redirecting from http to https in a shop site, which status code should I use?

On a shop website, when "Pay now" is clicked we perform a header redirection to the same URL, just an SSL secured https version. In such a common scenario, should we use a permanent (301), a ...
user avatar
  • 324
8 votes
3 answers
720 views

Will redirecting expired domains to my website help or attract penalties?

I am developing a entertainment website and have found more than 4 entertainment domains (expired domains). Domain authority of these domains are 25 or more. If I will redirect these domain to my ...
user avatar
8 votes
2 answers
1k views

When the root URL of a domain doesn't have a specific site, how should visitors be directed to language folders?

My question is not technical (how to do it using X technology), it's about choosing proper approach that is good for SEO. Description Let's say I have a website example.com. It's a multilingual site,...
user avatar
  • 83
8 votes
1 answer
2k 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 ...
user avatar
8 votes
3 answers
1k views

How do you direct iPhone/Android browser to m.example.com?

I have some special coding that only works for HTML5 browsers (simple geolocation stuff). I want to redirect iPhone and Android users to the m.example.com version of my website. How is the best way ...
user avatar
8 votes
5 answers
1k views

How do I redirect all 404 URLs to a subdomain with same URL format using WordPress?

How do I redirect Pages from the main site with 404 Status to the Subdomain with same URL Structure? This for example: https://www.example.com/rent this returns a 404 Error and must be redirected to: ...
user avatar
  • 524
7 votes
5 answers
3k views

When responding with a HTTP 3xx Redirect status, should there still be a response body?

When a service is answering an HTTP request with a "3xx Redirect" status code response (and the accompanying Location header) should it still send a meaningful response body along with the response? ...
user avatar
  • 303
7 votes
5 answers
3k views

Redirect visitors when site is too busy

We're expecting a large spike in traffic to our website this week. If the site becomes overloaded (i.e. visitors are getting a 503 error), I want to redirect visitors to another web address. How would ...
user avatar
  • 603
7 votes
5 answers
6k views

301 redirected an entire website 4.5 months ago; still showing up in Google search results?

Consolidated two websites on December 9, 2013; a site wide page-to-page 301 redirect was implemented which redirects site A to site B Website A (the one being redirected) is: Still showing up in ...
user avatar
  • 387
7 votes
4 answers
465 views

Why do some webmasters avoid putting direct links on their pages?

I've seen this more than often in many websites, that the webmaster avoids putting direct links on the page, instead they use a redirect such as following: http://www.example.com/?url=http://sample....
user avatar
  • 307
7 votes
1 answer
2k views

Why is having no redirect between example.com and www.example.com wrong?

After asking this question: https://stackoverflow.com/questions/8042748/facebook-login-returns-error-message-if-domain-accessed-without-www-prefix I was told that using example.com and www.example....
user avatar
  • 173
7 votes
3 answers
1k views

How to submit shortened URLs to Google so that they are included in the index

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster ...
user avatar
7 votes
3 answers
4k views

.htaccess permanent redirect to www

I have a WordPress installation that is not redirecting URLs not starting with www. Example: http://example.com/dir/ doesn't send to http://www.example.com/dir/ instead goes to http://example.com/. ...
user avatar
  • 173
7 votes
3 answers
5k views

Would redirecting to a new home page affect SEO?

I'm currently working on a new landing page for this site. I want the landing page to replace the existing front page of the site. However I don't want to lose the Page Rank of the current front page -...
user avatar
  • 183
7 votes
4 answers
9k views

Will Google Analytics track URLs that just redirect?

I have a link on my site. That links goes to another URL on my site. The code on the server sees that resource being requested and redirects the browser to another website. Will Google Analytics be ...
user avatar
7 votes
2 answers
2k views

Is having a landing page for multi-country websites detrimental for search engine ranking?

I have a multi-language / multi-country website which uses a single domain name. The url structure is as follows: country-name.example.com/language/ Ex: ca.example.com/en/ ca.example.com/fr/ uk....
user avatar
  • 173
7 votes
2 answers
5k views

How to implement WordPress in a subdirectory, hosted on a different server?

I am working with a client who already has a custom e-commerce website set up at their own domain e.g. example.com We want to host their WordPress blog at a subdirectory of their domain e.g. example....
user avatar
7 votes
2 answers
4k views

Redirecting robots.txt when moving to a new domain

I'm moving a site to a new domain, to a local tld. I already redirected everything successfully to the new domain, except the robots.txt. My question would be that is it needed to redirect the ...
user avatar
  • 337
7 votes
4 answers
596 views

How Late is Too Late to Redirect Pages of Domain for SEO

Our company recently had a new website designed for them to replace the old one that was literally made sometime in the mid-90's. The new site went live a couple of months ago. I have just been asked ...
user avatar
  • 173
7 votes
1 answer
4k views

redirect various http domains to certain https domain via htaccess

I have a bunch of domain names with different TLDs. What I want is to point several domains to the "main"-domain which has a SSL cert (single domain). Like this: https://example.com (main ...
user avatar
7 votes
3 answers
280 views

How to re-direct Wordpress posts with 301

All my WordPress post URLs generate sub directories with duplicate content and I do not know what regular expression to use to consistently 301 redirect domain.com/category/post/random-number/ to ...
user avatar
  • 71
7 votes
1 answer
191 views

Redirecting from Wordpress.com site to Wordpress.org with SSL

I am in the process of transferring a Wordpress.com site to Wordpress.org. The old site domain: https://oldsite.wordpress.com. The new site domain: https://newsite.com. I am facing a dilemma on the ...
user avatar
  • 173
7 votes
2 answers
10k views

Why does 301 redirect timeout with HTTPS even though it works with HTTP?

Through my domain registrar I have set up a domain, essayme.co.uk, to automatically forward to https://google.com. If I go to http://essayme.co.uk it works as expected and redirects me to https://...
user avatar
  • 171
6 votes
3 answers
1k views

Should I redirect desktop users visiting mobile page to desktop version?

So I am redirecting mobile users to mobile version of the page and also have alternate attrubute set up for that: <link rel="alternate" media="only screen and (max-width: 640px)" href="http://m....
user avatar
  • 1,619
6 votes
2 answers
310 views

We changed our URL and our impressions dropped almost 100%

The company I worked for changed their domain about a month ago and updated the URLs for all of the pages. We mostly removed the .aspx from the ends and decreased the depth of many of our pages. We ...
user avatar
  • 12.7k
6 votes
6 answers
2k views

Are there downsides to using a 301 redirect from a shorter URL on our own domain rather than using a URL shortener service?

Wondering if there are any negative implications to using a redirect on my own domain as a kind as a URL Shortener. I am often asked by folks creating printed documents for "short URLs". My ...
user avatar
  • 61

1
2 3 4 5
32