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.

2
votes
0answers
9 views

HTTP redirection target has Content-Disposition header so browsers show the redirecting URL. Does that affect SEO?

www.example.com/fpdfile/ gets a 301 to www.othersite.example/filepdf/ and there we have attached Content-Disposition header. The user sees only the www.example.com/fpdfile/ in address bar, but the ...
1
vote
1answer
23 views

htaccess rule doesn't work - NET::ERR_CERT_COMMON_NAME_INVALID

This URL: https://mqgmodas.com/rebajas/ Into the .htaccess I have: Redirect 301 https://mqgmodas.com/rebajas/ https://masqguapas.com/rebajas/ Also I have a redirection in my control panel saying ...
2
votes
0answers
16 views

Moving homepage to subfolder without affecting seo

I have website that focus in first time in negociation techniques. I have invested a lot to make homepage well ranked on Google. Now I want to make site bigger. I want to extend it to be about ...
0
votes
0answers
25 views

Edit htaccess file to remove the slash at the end without disturbing https settings [duplicate]

My website URL has a slash at its end and appears like this https://mywebsite.com/ Since search engine reads https://mywebsite.com/ and https://mywebsite.com as two different URLs, I want to ...
1
vote
1answer
45 views

Redirect from www and http to https doesn't work on sub-domains

I am trying to redirect all www and non-https requests to the HTTPS only versions with Apache server. I don't need or want www or non SSL URLs at all. The issue is that with the 2 different snippets ...
1
vote
0answers
27 views

HSTS and redirecting to www. sub domain

I am trying to setup HSTS for my website but running into some problems regarding the response headers and the use of a sub domain. What I would like is for all HTTP traffic to redirect to https://www....
4
votes
1answer
38 views

What is the most SEO friendly way to redirect the main domain to different subdirectories?

I have a multilingual website (English / Hungarian). I need to redirect my domain (mysite.hu) to subdirectories (/hu, /en), based on chosen user language preference (the default is Hungarian). For ...
1
vote
1answer
30 views

Firebase redirects http to https with 307 code (Temporarily Moved), which is bad as per SEO. How to configure it to use 301 code (Permanently Moved)

My website is hosted with Firebase. It offers https out of the box. When a user hits http://example.com, it redirects to https://example.com with 307 code (Temporarily Moved). As per various SEO ...
2
votes
1answer
288 views

Is my .htaccess settings hurting SEO?

I have a site that I have redirecting to HTTPS. I do this to leverage wildcard SSL for my password protected pages. Everything seems to work fine with testing. For example, whether you type in HTTP or ...
1
vote
1answer
24 views

how to redirect lower case to upercase

I have a WordPress blog and I made subfolder like this https://example.com/Tourism but when I open this URL with lowercase "t" it shows me 404 not found error: https://example.com/tourism this ...
1
vote
0answers
24 views

Oracle HTTP server URL with no trailing slash causes redirect when HTTPS is used

My application is hosted in oracle weblogic 12c with OHS 12c and have SSL enabled at port 1234. URL as such HTTP : http://servername.example/webName HTTPS : https://servername.example:1234/webName ...
0
votes
1answer
44 views

HTTPS Re-directing

We built a site for a client to advertise a new block of apartments they had built. The apartments have now all been sold so we have been asked to forward the domain to another domain until there is ...
0
votes
2answers
47 views

301 redirect in the htaccess file issues

This is driving me crazy, can anybody tell me why this 301 redirect does not work. I just get a 404 error with the old /about page. Here is the code for info: {ENV:WPR_SSL}.html%{ENV:WPR_ENC}" -f ...
1
vote
0answers
12 views

301 redirects to a similar domain

My company has two similar but not identical sites. Similar page hierarchy and content but different brands. We want to shut one down and 301 the pages to what we feel is relevant on the better site. ...
2
votes
1answer
53 views

http to https redirect triggers “Duplicate without user-selected canonical”

For some reason, my Main URL (https://www.foxteller.com) cannot be indexed because of my domain redirects in the apache2 config. My redirects go as follows: http://foxteller.com/ > https://www....
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 ...
1
vote
1answer
44 views

Nginx How to do 301 redirect from old domain to new domain except few URL

I am using nginx and trying to redirect all users from old domain to new domains., using this configuration. server { listen 80; server_name example.com; return 301 https://new-...
0
votes
1answer
29 views

Is it advisable to redirect all similar websites to a single website now ? (Can It give a positive result in SEO rank)

Is it safe to redirect other similar domains I own to a my brand website now ? can it have a positive or negative impact on the ranking. I understand that, Google handles the 301 redirection ...
1
vote
2answers
185 views

.htaccess redirection for my domain?

I have a site that has been hit hard with Penguin and Panda. So hard I have put up another domain and installed a CMS and rewritten the content the page has a good PageRank but was hit hard with ...
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
13 views

Change of Address tool - Google - how to solve migration to example.com/cs/

My question is about change of domain address tool. Old domain is example.cz, we resolve the move to the multilingual example.shoes domain example.shoes is domain with language mutations from ...
1
vote
1answer
26 views

My www version has better metrics than the non-www, so I'm preferring it in search console now. What else do I need to do?

I am working on a website which was originally registered in Google Search Console as http://example.com/. After a few months I noticed that the http://www.example.com/ has higher domain authority (...
0
votes
2answers
27 views

Do follow link redirection

I am new to SEO and using WordPress. I got a do-follow back link from a website. The link's structure was /2018/03/03/abc/. After that I changed the permalink structure. So the link became /abc and ...
2
votes
1answer
17 views

When redirecting to another domain, to which domain will HSTS apply?

Assuming the following, what domain will be HSTS'ed for the next year, foo.com or bar.com? RTFM (RFC6797) doesn't help much. > GET / HTTP/1.1 > Host: foo.com [ ... ] < HTTP/1.1 301 Moved ...
2
votes
2answers
282 views

Redirect loop in .htaccess when removing trailing slash

I have the following .htaccess file: AddDefaultCharset utf-8 RewriteEngine on Options +SymLinksIfOwnerMatch RewriteBase / # redirect all www-requests to no-www # - RewriteCond %{HTTP_HOST} ^www\....
4
votes
1answer
53 views

Reasons to use a custom 404 page that redirects with code vs a 301 redirect?

We are moving a website from Joomla to Mura and some of the pages are going to be located at different URLs. I can set up 301 redirects in the rules section of the web.config file in order to ...
4
votes
2answers
3k views

What causes “redirect notice” in Google search?

Occasionally, I get "Redirect Notice" pages when I click on Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google search. I ...
3
votes
1answer
51 views

Non WWW redirect to WWW and non SSL to SSL - htaccess

I'm trying to redirect my Wordpress site from non www to WWW and non SSL to SSL permamently. Here's the code I'm using: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{...
1
vote
1answer
24 views

.htaccess - redirect the contents of a subdirectory of old domain to new domain (WordPress) [duplicate]

I have problems with the redirection of my old website to our new website under a new domain. The old website was created with Wordpress and the simple redirect 301 was successful. However, some pages ...
1
vote
3answers
2k views

Would redirecting to a 404 be ok for SEO?

There was an old website located at http://example.com. Then it has been replaced by a new website, with a totally new url configuration, leaving old domain, but switching to https-only. So now all ...
1
vote
0answers
46 views

How to identify the source of 301 redirect loop on a WordPress site when server side caching plugin is enabled? [closed]

Our WordPress site has developed a 301 redirect loop error when web-server caching is enabled. With server caching disabled and caching plugin installed and active the issue doesn't occur, but the ...
2
votes
1answer
43 views

nginx: 301 redirect to non-www, SSL urls on default_server(s)

My goal is to have nginx primarily return a check for all requested URLs that start with http:// and/or contain //www., and 301 redirect them to the URL where //www. is replaced by // and http:// ...
4
votes
2answers
3k views

Remove query string from 301 redirect URL

I'm having some trouble with redirects and I haven't been able to get this to work. I want to make the following http://www.example.com/seasonal/christmas?p=15 redirect to http://www.example.com/...
4
votes
4answers
2k views

Can I reuse a URL after it's used for a 301 redirect?

Is it possible to 301 redirect a page and then reuse the redirected URL again in the future? What are the disadvantages of using the old link? For example: www.example.com/contact 301 redirect to ...
1
vote
1answer
20 views

Should I see the backlinks from my old redirected domain in Google Search Console?

I've 301 permanently redirected my old domain. Should I see the backlinks from my old domain in my new domain's Search Console property, or do they not show?
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 ...
1
vote
1answer
58 views

301 Redirect Issues in Apache Virtual Host

I've got a site with SSL (Certbot) enabled and so I've setup my 301 redirects in the /etc/apache2/sites-available/example.com-le-ssl.conf file. I did it this way since the non-ssl virtual host (:80) ...
1
vote
1answer
28 views

Can the simple 301 redirect plugin for WordPress cause a redirect Loop when trying to redirect to the same path, but on HTTPS?

I want to redirect http://example.com/folder1/page1/ to https://example.com/folder1/page1/. In simple 301 redirect plugin in the request part I should write: /folder1/page1/. In the destination I may ...
-1
votes
1answer
244 views

How to remove trailing slash from my root URL in htaccess?

I've tried several ways to remove the trailing slash from my URL in .htaccess and nothing worked but now even my URL can't be found because now it has a slash. Here is what my .htaccess looks like. I ...
1
vote
0answers
13 views

Download link expired, going back to software presentation page, what redirect method to use?

When someone (user or bot) reaches an old download link like /download/yellow-wallpaper.zip?key=some-expired-download-key , user is sent back to file details page, e.g /yellow-wallpaper.html, where ...
3
votes
2answers
37 views

How to remove old domain that we don't have control over for branded searches that should only show our new site?

I changed my company website URL from www.tirnav.in to www.tirnav.com. Google Webmaster had already indexed my earlier website i.e tirnav.in and now when i search google for Tirnav Solutions it still ...
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 ...
0
votes
1answer
165 views

HTTPS + IP not redirecting to configured Domain Name and gives “Your connection is not private” [Nginx/Ubuntu]

I am using NGINX for 301 redirects on Ubuntu and reverse proxy for my Web Application and aim is to redirect traffic to non-www url such as https://mywebapplication.example. So with my current ...
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 ...
2
votes
2answers
67 views

Wordpress htaccess redirect from http to https

Currently I use this rule on my WordPress .htaccess file to redirect HTTP to HTTPS: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{...
2
votes
2answers
52 views

Is it bad for SEO to 301 redirect the homepage URL to a deeper URL?

For some reason we need to 301 redirect homepage URL to another URL for a while. Eg: we would use a 301 redirect from www.example.com to www.example.com/a-catgory/b-catgory we would add a canonical &...
3
votes
1answer
63 views

Will GoDaddy's domain forwarding affect subdomains?

I have an old domain registered with GoDaddy. Let's say it's olddomain.com. I want olddomain.com and www.olddomain.com to go to www.newdomain.com. The complication is that I have a few subdomains ...
3
votes
1answer
187 views

Are there any tools in Google Search Console for removing URLs with 301 redirects?

In Google Search Console, I am getting 15-20 all different URLs in 404 section which is not in proper format(this URL is too old around 6-7 years and there is no 'Linked from' for this URLs). I want ...
1
vote
1answer
41 views

404 to 301 Permanent Redirect a good idea?

I have a domain which I bought in 2013 and stopped working on it in 2015. I recently started to work on it again. The website had around 150 articles which I deleted a long time ago. While none of ...
1
vote
1answer
38 views

Lost SEO after domain change. Can it be duplicate content?

So, I have a niche blog started in June 2017. After the first year (with around one day before the expiration date), I have changed the domain, because the old one wasn't related to the niche. But, I ...