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
1answer
16 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 ...
3
votes
1answer
40 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://%{...
4
votes
1answer
49 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 ...
0
votes
1answer
16 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
1answer
19 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 ...
2
votes
1answer
26 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
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
0answers
33 views

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

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 ...
1
vote
1answer
37 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
16 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?
1
vote
1answer
25 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
93 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
10 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
35 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 ...
0
votes
1answer
50 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 ...
2
votes
2answers
65 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
45 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 &...
1
vote
1answer
40 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
28 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 ...
0
votes
2answers
19 views

Is it good idea to redirect (301) domain+links without “Address Change” in Google Webmaster?

Lets say, I want to move most of my site content from example.com to a1.com, but also want to put i.e. 20 pages to a2.com. Mainly I care about page-rank to be transited well. what are best way to do ...
3
votes
1answer
39 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 ...
1
vote
1answer
45 views

is it recommended to change all old 302 redirections to 301?

I have a client which has 302 redirected all the http pages to https pages 4 years ago. Now is it recommended to change all the 302 redirections to 301 or should I keep them the same? Also they have ...
1
vote
2answers
20 views

Backend method to changing base wordpress domain to prevent redirect

My friend has come to me today to tell me he wants his wordpress site moved from example.com to example2.com. I have full access to the same server managing both those URLs, I copied the entire file ...
0
votes
1answer
14 views

Swapping canonical urls [duplicate]

Let's say I have previously registered a domain blab.la and have already submitted it to google search console, it is indexed and available in search results. Now, I have purchased another domain ...
1
vote
1answer
44 views

Is it ok to put canonical tags on 301 redirected pages?

I redirected my e-commerce website from Http to Https. Now I want to implement canonical tags for similar products to avoid duplicate issue. In my product pages the permalink is the HTTP version but ...
1
vote
1answer
31 views

A website has more than 5000 404 Errors, is this a problem? [duplicate]

I have a website of one of my clients that allows the user to delete pages by themselves with a form. When a page is deleted the website generates a 404 Error. The deleted pages total about 5000, and ...
-1
votes
1answer
36 views

I cannot do https redirection on my website on .htaccess

Am having a local classified website. I bought SSL for the domain but cannot put https redirect on htaccess since my developer wrote somerule on htaccess to get url for SEO. Can some help for the same....
2
votes
1answer
156 views

301 redirect with masking on GoDaddy

We are using GoDaddy platform to put meta tags. We have 200 domains name some for the brand; some are related to our product. We want to redirect (301) all of 200 domain names to our main one with ...
1
vote
0answers
87 views

Will introducing a CDN for images on a subdomain dilute our PageRank or hurt our rankings?

Background: We run a product aggregator site. We list 20k products which will grow to 200k within the next year and also have a section of the site where users can take those product images and ...
4
votes
2answers
1k 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 ...
0
votes
1answer
40 views

Google Consider HTTPs over HTTP - How to redirect https to http without losing traffic

I have not installed SSL nor enable on my website, however the hosting companies did it. Now Google started crawling https pages over http. I have uninstall the ssl form Hosting Cpanel today. ...
1
vote
1answer
19 views

Google search console doesn't allow me to move to a new domain that has a path

Gwt notify me that I can moved my old domain (www.olddomain.com) to my new domain only if there's no path on my new domain. But in this case, I have to move my old domain (www.olddomain.com) to (www....
2
votes
1answer
30 views

Redirecting a PHP page that should normally only have a Query String

I have a page that is the "template" to hold item information, for example: https://example.org/item/ Normally though, a user will only ever get to this page with a query string attached https://...
1
vote
0answers
20 views

301 Redirection for a New URL in New Website

I have a internal page in example.com with around 10,000 organic traffic per month, but I am not making any money from it. I am building a new blog called example2.com in near future with monetizing ...
0
votes
1answer
12 views

301 Redirects and Link Values [duplicate]

I recently moved my website to a new domain but seems like the link values are not passed till yet. I researched it a bit and found on Moz documentation that it may take sometime before the link ...
0
votes
1answer
17 views

Redirection from main domain to add-on domain

I want to redirect the main domain to an add-on domain using 301: Is it important that the main domain will be the one pointing to the add-on domain? Does this have any negative effect from a ...
3
votes
1answer
513 views

How to Redirect Pages with Query String?

I want to Redirect as seen below: https://example.com/p1/p2?sort=p.model&order=ASC&page=2 to https://example.com/p3/p4?sort=p.model&order=ASC&page=2 Also, I have this code in my ....
0
votes
0answers
17 views

Apache: Redirect aspx url with multiple query strings [duplicate]

Recently I migrated from aspx to PHP. I want a redirect rule as following from: http://www.example.com/fr/video.aspx?id=27&p=xxx to: http://www.example.com/fr/video/the-first-time I need to ...
5
votes
1answer
280 views

Is it necessary to add a canonical tag for a static site switching from HTTP to HTTPS if there is already a 301 Redirect?

We have a static site that has thousands of HTML pages and are planning to switch to HTTPS in the next few days. As the site is fairly new, we do not have any problems with duplicate content at the ...
2
votes
1answer
23 views

For documents that get generated with a new version id, how should I handle the old URLs? Robots.txt, 301 redirect, or create permanent URLs?

The site I am working on has around 800 products, some of these can have up to 2000 PDF and CAD drawings each. The links to these PDF and CAD files are combined into a single object and then linked ...
2
votes
1answer
271 views

How to redirect all pages of site A, including those with query strings, to homepage of site B

I want to redirect all pages of SiteA to homepage of SiteB. I used this code in SiteA's .htaccess file: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)$ https://SiteB.tld/ [...
-1
votes
1answer
11 views

How to direct main domain pages to sub domain [duplicate]

One of my client had a wordpress website say www.example.com.au in wordpress As they wanted to have separate websites for different locations, we created subdomains for each location like sydney....
1
vote
0answers
31 views

How to redirect multiple URL's to the same URL. [closed]

I have been searching for a solution to this but can't find a good answer. I am trying to achieve the following through Wordpress with the Yoast SEO plugin. Here is what I am trying to do: I need to ...
0
votes
1answer
31 views

site lost all traffic after installing ssl and moved to a new domain, 301 redirect

About a month ago, I moved my site from http://www.etihadassessment.com to https://www.cabincrewevents.com. My traffic went from 5k pagesviews a day to only 400-600 a day. I have tested few tools and ...
2
votes
1answer
38 views

Will a shorter version of our domain show up in Google?

Our domain is www.blablablablaXXblablablba.com We do not want to change this, but instead we want to "add" a redirection domain (301 redirect): www.XX.eu (which will make it easier for people to ...
1
vote
0answers
31 views

.htaccess redirect to new domain with new page name [closed]

Does anyone know how (or if) I can do an .htaccess redirect if both the domain and page name have changed? I can get olddomain.com/page/ to redirect to newdomain.com/page/ (same page name), but not ...
3
votes
1answer
65 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 ...
2
votes
1answer
18 views

URLs include a directory without an index page, should it be removed for SEO?

A client's website has the following structure: /products/product-1 /products/product-2 /products/product-3 These product urls are keyword optimised pages for organic search. Google also indexes /...
0
votes
0answers
37 views

Googlebot not indexing language subdirectory

I've language based subdirectories, which is changed by user's country. Let's say if user request from Poland example.com 302 redirects to example.com/pl example.com/pl 301 redirects to example.com/...
1
vote
0answers
29 views

Why does SEMrush report lots of backlinks from the 301 redirected old website to the new one?

The old version of the website is http://example.com and they 301 redirected it to the new URL, https://example.se. I was checking the domain in SEMrush and it was 2.8k backlinks from the old website ...