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
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
14 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
693 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
19 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
290 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
25 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
376 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
13 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
33 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
40 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
33 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
197 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
19 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
40 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
40 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 ...
1
vote
2answers
49 views

How to ensure historic backlinks point to primary domain

Hope someone can assist with this DNS/Redirection issue. I'll try to keep this to the point. There are two domains and two subdomains to deal with. olddomain.com is with registrar A. newdomain.com ...
1
vote
1answer
35 views

Does a 301 redirect at the server level work when the host of the new website is different from the old one's?

We are doing a site migration. the URL path and the protocol will change. Also we will move the website to a new server host. The web agency says that they will do the 301 redirects in server level ...
1
vote
2answers
1k views

How to redirect all pages in /directory/ to webpage with htaccess

I am trying to redirect all pages on my site in one directory to a specific page using htaccess. Example anything like example.com/forums/ example.com/forums/pages example.com/forums/subdirectory/ ...
3
votes
1answer
124 views

Why would googlebot be trying to crawl a URL “https://www.example.com/https://www.example.com/other/things”?

I've been trying to clean up crawl errors on my company's website. In one menu, google bot is trying to crawl every link with an extra-base URL attached. These pages (perhaps obviously) don't exist ...
1
vote
0answers
165 views

.htaccess How to redirect some specific pages, then a blanket rule to new domain?

I am creating a new website on a new domain, and doing page-to-page redirects from the old website for (A) all static pages, as well as (B) all blog posts. A) The static pages follow a new URL ...
0
votes
1answer
32 views

Will client sites on clientsite.mydomain.com affect SEO at www.mydomain.com?

Example: Petterson Rekvisitta is a company I am building a website for. He has a domain: petterson.com, and will eventually move there. During development I set up his site on petterson.mydomain.com ...
1
vote
1answer
109 views

How to use htaccess file for site migration?

We are doing a site migration. The protocol will change from HTTP to HTTPS. The server IP will differ (but in the same region), as the web agency says we can not have the same domain on two IPs. So ...
1
vote
0answers
79 views

SEO: Redirect root to a sub-dir, build new content on root, keep old rankings for redirected sub-dir

I want to move our page from site.example to www.site.example/home but keep the SEO rankings from when that same content resided on the root domain. Then I want to build back up the site.example ...
1
vote
1answer
46 views

Do URL redirects negatively affect SEO when part of a site restructuring?

I understand that no 'Link Juice' is lost, when implementing a 301 Redirect for the purposes of redirecting from http to https prefixes. What about redirects, when a site goes under a restructure? ...
2
votes
1answer
116 views

.htaccess - how do i redirect TLDs?

I'm currently using my .htaccess to force all HTTP requests to HTTPS, and that is working very well. However I would also like to redirect some TLDs. For example - http(s)://(www.)example.info -> ...
1
vote
3answers
55 views

Buying a domain name - How can I ensure that it hasn't expired or been 301 redirected before?

I'm thinking about buying a domain name from a seller. The Verisign Whois information shows that it was registered in 2011. Are there any instances in which a domain could drop/expire and yet the ...
0
votes
2answers
30 views

Does putting canonical remove duplicate issue OR we should do permanent redirect [duplicate]

We have certain URLs of the city and their alias-names. For example: Primary URL: /used/cars-in-mumbai/ Alias URL: /used/cars-in-bombay/ We can't remove "Alias URL" as it's hard-coded at multiple ...
4
votes
1answer
73 views

How to redirect from https://hi@example.com/x, to just https://example.com/x (htaccess)?

I have a weird problem where for some reason search engines see that I have duplicate URLs, like https://hi@example.com/x and https://example.com/x I'd like the first (i.e. with hi@) to 301 redirect ...
1
vote
3answers
516 views

410 or 404 or 301 for SEO for old pages after changing URLs in a site update?

Our site have around 2.1M pages indexed at Google. We made a change to the URL for the indexed pages, for managing international changes, that reflects change in almost all indexed pages. When the new ...
1
vote
3answers
75 views

Use canonical tag instead of redirect 301

I have many URL that I made 301 redirect now after 2 months I want to remove this redirect and set canonical tag instead, is it harmful for SEO and google? Now: example.com/ads/n-151617.html > 301 ...
1
vote
2answers
79 views

When redirecting HTTP to HTTPS, which URLs should be in the sitemaps?

Recently I've installed SSL certificate on my website and added a 301 redirection on my website for all links. Previously my sitemap included HTTP links and almost my 5000+ pages are now indexed on ...
1
vote
2answers
195 views

301 redirect to HTTPS with back links to prevent ranking problems when moving from HTTP

Would like to ensure my sites rankings are not affected by doing the wrong type of redirect so I have a site that has been on non HTTPS since it was purchased many years ago. Now I'm looking to change ...
-1
votes
1answer
87 views

Built a site on a domain that was previously 301 redirected, Google won't crawl it now

I registered a domain and built a site on it. I didn't realize that the domain had a previous owner who 301 redirected the entire domain to another domain of his. I have this domain listed in my ...
0
votes
1answer
24 views

Redirect 3rd level domain to 2nd level — Will Analytics count traffic twice?

I am redirecting mycompany.com/product to promo.mycompany.com/product My question is: Will Google Analytics count traffic twice under /product ?? I am doing this because I create landing pages ...
3
votes
2answers
2k views

nginx http to https redirect - just isn't working

I am running my own webserver with nginx on ubuntu 17.10. I have opened ports 80 and 443. Trying to get the HTTP to HTTPS redirect working, but everthing i seem to have tried fails. i am still ...
1
vote
2answers
19 views

Redirects of only some pages from parent company site to new website

We have have recently split from our parent company and are now an independent company with a brand new website. The parent company has a very authorative site and (being new) we have none. We are ...
1
vote
2answers
994 views

Does too many 301 redirects harm SERP rankings

In last 15 months, our website have undergone 3 major structural changes. Due to which we had to create thousands of 301 redirects. We used to retain number 1 slot in Google SERP, but in past 14 ...
1
vote
1answer
963 views

How to avoid SSL warnings about certificate not for the current site when redirecting alternate domains?

I have multiple domains forward issue. Domains with plurals and singular e.g.: example.com, examples.com, example.biz, examples.biz I forwarded all of them to https://examples.com and https://...
2
votes
4answers
436 views

Should I redirect login / admin pages to the home page?

I'm on a security kick right now and my current project is a server with a Wordpress site (that used to be a Joomla site). I sometimes get 50 requests a day to /wp-login.php (the Wordpress default ...
1
vote
2answers
601 views

How to properly redirect SEO from an old domain to a new one - should I display a message first?

I have a domain, lets say example.com. I am rebranding the website and moving to example2.com. The example.com domain is well positioned in Google. How do I keep this Google position, or how do I harm ...
2
votes
2answers
60 views

How to find out the domains that 301 redirect to my website?

How can I find out what domains are 301 redirected to my website? For example if a.com, b.com, and c.com are 301 redirected to my website, then how can I know the list of a.com, b.com, and c.com?
1
vote
1answer
41 views

dynamics urls - redirects or rewrite and page SERP position

I'm trying to get my head on this, our site have thousands of links, is an e-commerce site, where products titles require changes on regular basis to get the best of SEO... you know, as usual, we ...
1
vote
3answers
217 views

During a website redesign, how will removing unused pages/URLs affect SEO ranking?

I have been designing a new company website on Wordpress. Its design and content is all entirely different from the old site. The old site was quite confusing, organizationally speaking, with lots of ...
1
vote
2answers
85 views

Buyer wants to rent my domain - risk of 301 redirects and other issues?

I have a domain that has some value. It used to be a big site with a lot of backlinks and SEO ranking history. I tried selling the domain, but a buyer doesn't want to pay the asking price. He instead ...
0
votes
1answer
28 views

Correct way to restyling a wordpress site [closed]

I have a wordpress site that needs a complete restyling (both theme and urls). I'm thinking about do the following steps: 1) Delete the current DB and WP installation on the domain 2) Install clean ...
1
vote
1answer
146 views

301 redirect for new domain whilst maintaining page paths for WordPress site

My client has a WordPress site which is hosted on a CPanel Linux server. Their old URL is https://old-example.co.uk. Their new URL is https://new-example.co.uk. Both URLs are pointing to the same ...
3
votes
1answer
86 views

Which redirect directive with Apache chooose to use among duplicates?

We are using Apache server with a .config file to do permanent 301 redirects. The web site is mostly maintained and content is provided by the client. This particular web site changes very often, and ...