We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [301-redirect]

301 is the HTTP status code for a permanent redirect.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Redirecting index.html to root + folder index.html to root folder? (multilingual)

I have example.com page. I want a homepage without index.html (example.com/index.html -> example.com) RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^(.*)/index\.html$ /$1/ [R=301,...
5
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 ...
1
vote
1answer
33 views

Using htaccess to redirect 301 for domain change

I am currently moving a domain from one to the other, this is not an HTTPS move but rather a move from exampleone.co.uk to exampletwo.co.uk. I am using this code: <IfModule mod_rewrite.c> ...
2
votes
2answers
109 views

301 redirects for asp pages to html

So I've redesigned a site that was built comprising of solely .asp pages and redid it using .html pages. I deleted the old site and uploaded the new, and uploaded my .htaccess file with code along the ...
2
votes
1answer
2k views

How to stop other domains to 301 redirect to my website domain?

I found that someone is 301 redirecting his website domain to my website domain. fakedomain.com -> 301 redirects -> correctdomain.com Using the contact information found by whois query, I already ...
4
votes
5answers
7k views

GoDaddy URL redirect won't work with affixed www

I have a mydomain.com that I recently redirected to my-new-domain.com using the forward option 301 in GoDaddy. It is working fine when I typed in mydomain.com, but when I typed it with the affixed ...
3
votes
3answers
171 views

Switching domain from HTTPS to HTTP

I recently launched a new site on an existing domain, using new hosting. The previous site utilized HTTPS, the new site does not (just HTTP). The problem I ran into is that Google currently has the ...
3
votes
1answer
34 views

WP Apache .htaccess redirect .com traffic to .co.uk Issue

I have a website I am looking to redirect .com traffic to .co.uk. For the moment, when I navigate to https://example.com, it redirects to https://www.example.co.uk and displays as such in the address ...
0
votes
1answer
117 views

Redirecting a domain works on HTTP but not on HTTPS with IIS server

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 ...
3
votes
3answers
900 views

Fastest way to redirect dead URLs to home page

A client of mine scrapped his entire wordpress site of many years for a custom CMS. The URL structures both use the /<post_title> format, so a pattern based .htaccess rule is out of the picture ...
0
votes
0answers
6 views

Redirect directory olddomain.com/my-site/ to new domain newdomain.com (SEO)

I am in the process of creating a new website newdomain.com. My old site was located within a directory of another domain olddomain.com/my-site. With regards both technical aspects, and SEO, what is ...
0
votes
1answer
44 views

Redirecting URL with & without query string?

If I setup a 301 redirect for the first URL path below will that also redirect all the paths below that contain a query string? For example: /6-light-oval-chandelier-espresso?pp=0&epik=...
7
votes
2answers
15k 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 ...
0
votes
0answers
30 views

Finding URLs that redirect to a given website

Is there any way to find all URLs that (permanently) redirect to a given website? E.g. www.ubercab.com redirects to www.uber.com. So I'd want a way to determine that www.ubercab.com redirects without ...
3
votes
1answer
997 views

Avoid 301 redirect in cdn.domain.mx

I have a domain with a .htaccess redirection problem. The active CDN the URL should be: cdn.domain.mx/images/test.png but redirects: cdn.domain.mx/images/something.png -> www.domain.mx/images/...
3
votes
1answer
45 views

htaccess conflicts

The issue that I'm currently forced to handle is related to a folder structure URL being redirected to the same folder structure URL but with a different string. So page-a used to exist but that ...
1
vote
3answers
3k views

301 redirect from “/index.html” to root if index.html not exist

Can I create 301 redirect from "index.html" to root directory if file "index.html" not exist? For example: link "http://example.com/index.html" show "404 Error" page. I need 301 redirect to root ...
1
vote
1answer
63 views

Will referrer info get lost in Google Analytics if i 301 from HTTP to HTTPS?

If we have a bunch of backlinks from HTTPS sites, but they link to the http://example.com version of our site or example.com. Even if our site is HTTPS and once traffic gets driven to those URLS ...
1
vote
1answer
29 views

Old website still found on google but redirects to new site

We have launched a new website replacing our old one, and Google now finds the new and the old website. Our old website was published under /public, the new one is published under /web: Setup until ...
4
votes
1answer
53 views

How would you implement redirects for domain canonicalization, no-www, and HTTPS for IIS 7.5

For the moment I'm stuck with an IIS-server, unfortunately not my best subject (I'm much better w. Apache). We have a site on a Win 2008 R2 Server with IIS 7.5. It's an old site and we are working on ...
4
votes
1answer
72 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 ...
2
votes
1answer
26 views

.htaccess to redirect subdirectory to its own domain name

I have for example 2 domain names gl.example that points to /public_html/ (which has subfolder /public_html/tlf/) and tlf.example that points to the subfolder /public_html/tlf/ How do I redirect so ...
3
votes
1answer
219 views

Redirect 301 for Apache Sub directory and query string combination

I am getting 404 errors in Google Search Console for URLs like the following: http://www.example.com/newsite12121212121212/eg/st_tour/perma/ http://www.example.com/newsite12121212121212/eg/...
0
votes
1answer
20 views

Bad route appended to URL when redirecting from http to https

I have a WordPress site hosted on OVH and I'm having issues when redirecting from http to https. http://www.example.com redirects nicely to https://www.example.com https://www.example.com redirects ...
2
votes
1answer
15 views

Having many redirected affiliate link with 301 Redirection

We have many affiliate link like below. example.com/123.html example.com/456.html example.com/789.html example.com/555.html example.com/666.html ....more than 1000 URLs All these links are 301 ...
0
votes
1answer
78 views

301 Redirect vs Canonical Link - which is preferred?

Let's say I have the following three URLS. Url1: Domain/Home Url2: www.domain/home Url3: domain/home <-- Canonical With respect to SEO, is it preferred to add a canonical link to Url1 &...
0
votes
0answers
34 views

Drop in traffic in high traffic site after 301 redirect

Here are the steps I took 301 redirect w/wildcard from old domain to new domain Updated & verified Google Search Console for new domain, submitted change of address, etc. Updated Google Analytics ...
1
vote
2answers
44 views

How can I change description Google shows in the search results for a 301 redirect URL?

We transferred our domain from our old CMS to our new one but we still have the same domain. Let's say our domain is now example.com. I Googled our domain protein powder and a page from our old site ...
0
votes
1answer
24 views

Moving content from old site/domain to new [duplicate]

We have two sites/blog, and now we are merging the two blogs into one blog. We move content from domain2.com to domain1.com. What should I consider when it comes to SEO. Should I move all the traffic ...
1
vote
0answers
36 views

Do deindexed URLs pass link juice? [duplicate]

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 my page, if deindexed, pass ...
2
votes
1answer
37 views

Does a new permanent rewrite rule supersede old permanent rewrite rule?

Ages ago we included a redirect in web.config to ensure that pages would rewrite to http://www.example.com/ if the user input, say, www.example.comor variants of it. Recently we changed the site so ...
3
votes
1answer
2k 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 ...
1
vote
2answers
66 views

What to do when changing or moving off of a CDN to redirect images?

I am moving a site off of a CDN where all the images are cached and served: https://some-cdn.example/my-image.jpg The image will now live here: https://myurl.example/my-image.jpg Many of these ...
1
vote
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
23 views

Is it OK for SEO to redirect a subdomain to its corresponding add-on domain after Google indexed the subdomain rather than the add-on domain?

I put in place a 301 redirection for the add-on domain subdomain.domain.example to subdomain.example, because Google was sometimes indexing subdomain.domain.example. Is this 301 redirection the ...
0
votes
1answer
25 views

Google ignoring Canonical tag

I have two pages on the site that are 100% identical: MyDomain.com MyDomain.com/Keyword MyDomain.com/Keyword exists solely because I had to give the page I created in the CMS a url, and that page is ...
5
votes
4answers
7k views

using .htaccess to redirect .asp to .php?

Ahoy all! I've been racking my brain with this one. I basically just converted all of my pages from ASP code to PHP code. Kept the same filenames. So, here is the htaccess code I have so far, but ...
4
votes
2answers
66 views

Difference between 301 and 303 status codes

What is the difference between 301 Moved Permanently and 303 See Other status codes? Both are used for redirects. There is some detailed info on the 303 at https://en.wikipedia.org/wiki/HTTP_303, ...
5
votes
1answer
2k views

GSC: How to move a site from a domain to sub domain, sub folder or new domain with a sub folder?

Is it possible to tell Google's Webmaster Tools that our site hosted on www. has moved to a sub folder, sub domain or a new domain with sub folder?
1
vote
1answer
19 views

How to ignore/redirect all URLs matching a certain string

I am using the WordPress plugin, Timely All-in-One events calendar. Unfortunately it is creating a plethora of duplicate URLs which end in strings like https://www.example.com/events/action~agenda/...
1
vote
2answers
36 views

How do web servers identify the client's location

Many websites directs the user to specific subdomains or domains based on their location. For example, if a user based in the UK types yahoo.com, the user somehow redirected to uk.yahoo.com. If the ...
0
votes
1answer
40 views

forcing SSL without 301 redirect

Is there a way to force an SSL lock without using a 301 redirect, such as server side? I'm happy to supply context if requested.
1
vote
3answers
875 views

How to claim ownership of a website in Webmaster tools if that website redirects to another site

Ive got an old website that i want to 301 redirect to another website (using .htaccess). I want to claim ownership of the property in Google Webmaster tools, to do this i usually use the file upload ...
1
vote
3answers
2k views

How to map thousands of URLs for 301 redirection?

We recently switched e-commerce platform and due to poor planning, webmaster tools is reporting that thousands of URLs are 404. We obviously have to 301 redirect these and tell webmaster tools they ...
1
vote
1answer
138 views

How to bulk redirect in htaccess from old site with parameters

I'm currently updating an old website, but I don't know much about htaccess redirects. I made a script to get all the pages of the website and here are some examples: For pages: Redirect 301 /index....
4
votes
1answer
64 views

Does having a lot of 301 redirects noticably impact performance?

I just moved my website to Wordpress from another service. Unfortunately, this means that although I was able to import all of my previous content to Wordpress, the post permalinks are now entirely ...
0
votes
0answers
14 views

Domain redirect to main domain with language param (301) [duplicate]

The following scenario: I have purchased multiple domains for a project: domain.app domain.com domain.de Originally it was planned to display a landing page on domain.app. On domain.de the german ...
1
vote
2answers
64 views

What does ^(.*) mean in a rewrite rule, is there a simpler alternative?

I have just copy and pasted a rewrite rule for a redirect from some website. It contains: ^(.*) I want to know what it means. Why is it so complicated? Can it be simplified? The whole .htaccess ...
0
votes
1answer
21 views

Can Google crawlers read the content of a page that has a 301 redirect?

I'm facing an issue of Google not picking up my new meta description for a specific page template. This page is currently being redirected to a different page on the site. Previously, the meta ...
1
vote
2answers
10k views

How to match only part of URL and redirect URL with parameters in .htaccess?

I have a number of links with similar structure: example.com/index.php/path/some-path/some-subpath?parameter=1 Which I want to redirect just to example.com/category/ But I want to match only the ...