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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

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 ...
0
votes
0answers
15 views

Implement 2000 redirects in an SEO friendly way without slowing the site down [duplicate]

I currently have two e-commerce websites, a new one, built on WooCommerce with ~1700 products and an old one, custom built with ~2100 products. I want to delete the old one and use it's domain and ...
1
vote
1answer
27 views

How to redirect from blog.example.org to example.com using htaccess

I have tried all means to do a 301 redirect from blog.example.org to https://www.example.com/post using .htaccess but the redirect doesn't seem to be working. I'm using this code below; ...
2
votes
2answers
2k views

getting 500 intenal error when setting 301 redirect using .htaccess

I am trying to use a 301 redirect to direct users and bots to my new site but when I put the .htaccess live I keep getting a 500 internal error shown. The site is actually a subdomain which i want ...
3
votes
1answer
42 views

Redirect domain name to a specific page

I have theses domain names installed: Main domain name: www.example.com Others domains: www.example.org www.example.fr www.animals.example I first made a rule on my .htaccess to redirect all ...
0
votes
0answers
16 views

Do deindexed URLs pass link juice?

I hope you're doing well. I am building some backlinks to a page of my website that is high likely to get deindexed (I have to build to that specific page) mainly because of duplicate content. Will ...
0
votes
1answer
37 views

301 Redirect not working as expected

I am in the process of doing a website redesign. We have changed the domain name and hosting server for the new project. Following are the rules that I am using in my htaccess file to perform a 301 ...
0
votes
0answers
20 views

Redirect 301 with an exception

Good evening, having to "dismiss" the old gov.it site in favor of the new edu.it, they advised me to set the following .htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.oldsite\.gov\.it$ [...
0
votes
0answers
5 views

Configure redirects with web.config

have a WP multisite that created the following web.config files at bottom ( works perfectly ). However, how do I create 301 redirects for individual pages in the subsites? ** WP generated web.config ...
1
vote
1answer
16 views

301 redirect not passing refer details to GA. Can i use a UTM tracking link in the 301 instead?

I have a link to a site i manage on a 3rd party domain. The link is actually to an old site which i then 301 to the current site. All the sites are http, but somewhere along the way the HTTP refer ...
0
votes
2answers
1k views

Where to place 301 redirects in the .htaccess file on a WordPress site

I edited my .htaccess file earlier to redirect from www version to non-www, and it is working correctly. However, now I have some page redirects I need to do. I am looking at the .htaccess file, and I ...
0
votes
1answer
43 views

Where to place 301 redirects in my Wordpress htaccess file?

I have about 25 301 redirects in my Wordpress htaccess file, that look like this: Redirect 301 /store/index.html https://www.notesinspanish.com/store-home/ At the moment they are at the bottom of my ...
0
votes
1answer
29 views

How can I have one “master” domain redirect to other domains based on the visitors country?

I am trying to figure out if it is possible to purchase one "master" domain but make its sole purpose to redirect and fork visitors to country specific external domains. Sounds confusing, but here is ...
0
votes
1answer
30 views

Wordpress or Apache or Nginx matching partial URL to full URI

I have a weird issue where either Nginx or Apache (I can't tell which - but I'm 90% sure it's Apache - Nginx is reverse proxying) is matching a partial URL to a full, random URL. For example: https://...
0
votes
0answers
15 views

Redirects for child page of same name different parent

I have a page structure of: candy1/blue/unique4/ candy2/blue/unique6/ candy3/blue/unique1/ The hard links work, but redirecting old links breaks at /blue/ since there are other pages named blue, ...
1
vote
1answer
19 views

Change of Address, Error in site redirection on Google Console

I am trying to change my domain on Google Search console using Change of Address tool, and for some reasons Google is throwing an error saying: The old site redirects to edbinx.com, which does not ...
1
vote
1answer
49 views

Redirecting 404 pages to another active pages in .htaccess

I have one product page indexed on Google but that link does not exist anymore and hits 404 page. What I want to do is to redirect that link in .htaccess to another product page since it ranks very ...
1
vote
1answer
45 views

How to redirect dynamically generated duplicate pages in .htaccess?

I have over 2000 dynamically generated duplicated pages like this: https://www.example.com/subfolder/page1.html and https://www.example.com/subfolder/page1/ What i am trying to do is redirect all /...
2
votes
1answer
60 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 ...
3
votes
2answers
211 views

Weird 301 redirection by google crawler

I have some pages on my website www.acethem.com which are having 301 redirection but they are not actually 301 redirects. e.g. www.acethem.com/pastpapers/by-year/2007/ is seen as a 301 redirection to ...
2
votes
2answers
73 views

How would Google react if I redirected currently ranking landing pages to the home page?

I have some tag pages on my website which contain specific keywords. They appear in the Google search results for those keywords. Those pages bring in a fair amount of traffic but the bounce rate is ...
0
votes
1answer
51 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 ...
1
vote
2answers
27 views

New business name and website - old site has 200+ backlinks - What to do? [duplicate]

For legal reasons I had to change my business name, and get a new site name and address (very long story). I had to forward my old domain to this new one, but the old domain has like 200+ back-links, ...
1
vote
0answers
7 views

Why would a 301 redirected RSS feed be appearing as an external link in Google Search Console?

We redirected our website over a year ago to a new domain. 301 is confirmed in place etc. All works fine. However a couple of RSS feed URLs using the old domain have appeared in the external link ...
2
votes
2answers
2k views

htaccess and 301 redirects - multiple domains

I have the following which redirects mydomain1.co.uk and mydomain1.com to www.mydomain1.com perfectly. RewriteCond %{HTTP_HOST} !^(.*)\.mydomain1\.com$ [NC] RewriteRule ^(.*)$ http://www.mydomain1....
2
votes
0answers
11 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
52 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
20 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
26 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
0answers
30 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
40 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
76 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
295 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
33 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
61 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
2answers
52 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
14 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
105 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
176 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
32 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
186 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
509 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
14 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
30 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
357 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
57 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 ...
5
votes
2answers
5k 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 ...