The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [redirects]

A page, link or command that points URL requests to another URL in the world wide web. Redirects can be either server-side or client-side through the use of javascript.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Do redirects affect google analytics?

I have a website that redirects in the following manner: https://example.com/drugs/paracetamol.html http://example.com/drugs/new-paracetamol.html - 302 https://example.com/drugs/new-paracetamol.html -...
1
vote
3answers
91 views

Using htaccess to force HTTPS doesn't work

BIG EDIT: The host that takes care of my SSL just told me ''The SSL that we provide with your contract only protect one domain OR one subdomain, not both''. They told them then that it's why bebechan....
0
votes
0answers
8 views

Redirect errors generated from Google's webmaster console [closed]

My site has 2 redirect errors. These errors appeared in the last couple of months. There's been No ERRORS on the site for the last 10 years. Please advise as to how I can remove these errors. The site ...
3
votes
1answer
68 views

How do I redirect a subdomain with a wildcard?

I've an old subdomain that was being used as a whitelabel. I'd like to redirect the subdomain to a page on my main domain. I was thinking the best way would be a htaccess redirect. RewriteCond %{...
3
votes
0answers
26 views

Redirected to www, but Google is indexing no-www without snippets, should I use noindex instead?

I started my blog a month ago and was using non www version for my website. Then, I recently decided to stick to www.example.com version. So I changed it and Google has indexed the www version ...
1
vote
1answer
10 views

.htaccess HTTPS fowarding still redirecting to a folder which I have removed from the rule

I have the following simple code in my .htaccess file in order to forward my domain to the HTTPS version of the website: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://...
1
vote
1answer
11 views

See Google Analytics tracking stats from short cross domain redirect URL used in print media

I am using a different domain for some ads to track how many people access the main site through this domain. How can I see this in Google Analytics? I have DOMAIN A (on the ad) redirecting to ...
0
votes
1answer
28 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=...
0
votes
0answers
28 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
42 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
1answer
35 views

Google Search Console: URL is not on Google (page with redirect)

I have just created a personal website which I host as github page and recently hooked it up with a custom domain. (In this post I changed the actual URLs to webmasters-example.com and webmasters-...
2
votes
2answers
99 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 ...
4
votes
1answer
32 views

Reorder parts of URL path to put date together using .htaccess redirects

old permalink: https://www.example.com/2019/cat/subcat/10/25/post-name/amp/ new permalink: https://www.example.com/2019/10/25/cat/subcat/post-name/amp/ How can I redirectmatch the old format to ...
2
votes
0answers
29 views

What is the Cloudflare equivalent of these two .htaccess redirect rules?

I usually set up my sites to rewrite URLs in the following cases: All http traffic is redirected to https (and www), with a 301 All non-www traffic is redirected to www (and https), with a 301 In ....
2
votes
1answer
21 views

wordpress multisite htaccess redirect site to TWO subsites

EDITED: I've split a website into two subsites in a multisite enviroment. The old site was moved to a subsite, and renamed old.mysite.example. This will be faced out at some point. During ...
0
votes
0answers
33 views

htaccess redirect/rewrite simple rule

I have a .txt file on my hosting and would like to redirect to it if somebody enters an specific website within their browser, e.g. example.com/webpage --> redirects to --> example.com/...
0
votes
0answers
44 views

How to mask redirect with Google Domains

For some reason, Google Domains does not have a mask feature. Is it possible to do this using custom resource records or synthetic records?
0
votes
0answers
13 views

m.me links not working chrome mobile

I just got into a problem when links to messenger (m.me/PageNumber) are not working on mobile chrome. It works fine on desktop chrome, it redirects straight to messenger.com/PageNumber. But on ...
2
votes
1answer
31 views

How to rewrite using .htacess when there is a ? (question mark) at the beginning of the URL?

Many JS functions on my site are sending Ajax request to /?something=3213214 but I need to redirect them to /something=3213214 When I do: RewriteRule ^test/(.*) /$1 [R] It does redirect /test/...
0
votes
0answers
5 views

Redirect sub.domain.com/folder1/ to sub.domain.com/folder1/folder2/

I'm trying to redirect sub.domain.com/folder1/ to sub.domain.com/folder1/folder2/ but I don't know-how. I've tried so for this but without success. RewriteEngine On #If the host is "sub.domain.com" ...
1
vote
0answers
24 views

Why does turning off “Force SSL with https redirect” keep http links redirect to https?

I realize this question can be an XY one. After upgrading my site from http to https, FB OpenGraph og:image not pulling images anymore. The solution seems to be using http links rather than https in ...
3
votes
1answer
45 views

HTTPD Redirect Doesn't Work with Environment Variables

We want to redirect users from an old domain to a new domain defined in an environment variable: SetEnvIfExpr true SERVER_HOST_NAME=mynewdomain.example The follwoing works in Apache 2.4 to redirect ...
1
vote
3answers
42 views

Merge a small site into a larger one while preserving SEO

I have a site with 10 pages of small tools for developers. I have a good traffic on it. I want to move all site data to be part of another big portal (hub for developer tools). I also want to ...
1
vote
1answer
24 views

Using IIS URL Rewrite module instead of Global.asax for complex redirect rules

We have a legacy ASP.NET website in which complex redirect rules are coded in Global.asax. Actually this logic processes requests with several optional or variable parts like {http|https}://[www.]...
1
vote
1answer
51 views

Stop URL tag redirection to my homepage

I'm trying to find a way to stop tag redirections to the homepage so that https://example.com/?something stops redirecting to https://example.com. Similarly, any URL which is followed by a question ...
0
votes
2answers
52 views

How to redirect example.com to http://example.com?

I have a blog at blogger.com, for which I got a domain name from godaddy.com. Recently I have decided to put some google AdSense ads on it to see how that goes. The problem I encountered is that ...
0
votes
0answers
8 views

Canonical Tags on Re-directing Form Pages

I'm adding canonical tags to our website and would like to add them to pages where users can download guides, but depending on user settings they could be redirected. If they are cookied, they would ...
1
vote
1answer
57 views

Multiple pages under single directory redirection to a single Page

I have the following scenarios for web page redirects 1) All pages under www.oldexamplesite.com/page/product/New-Design/* and All pages under www.oldexamplesite.com/page/product/nature-of-design-...
2
votes
1answer
21 views

Redirect root to subdirectory of current year if this exists, otherwise to a previous year that does exist

This kind of htaccess code is a little complex for me as I'm just beginning to understand redirects with htaccess. Could someone help me with this? Thanks in advanced.
0
votes
0answers
41 views

OVH active SSL for domains used for redirection

I have 2 domains: domain-a.example is my main website and domain-b.example is a domain used to redirect users to my main website (domain-a.example). On my ovh dashboard I set the redirection from ...
1
vote
0answers
58 views

Considering changing URL structure from example.com/page?id=1 to example.com/1/keywords but wondering what SEO impact is

Currently our website has a variety of community generated content that is under the URL structure of example.com/page?id=1. Some of these pages rank quite well on Google due to a combination of ...
0
votes
1answer
25 views

Changed website from http to https: what to do in Webmaster Tools?

So now I have two domains in my Webmaster Tools, as I have migrated to HTTPS. Migration here means that I have enabled HTTPS and enforced it, that's it. My question: should I do something in ...
1
vote
0answers
15 views

Old Url will no longer be available, how to redirect to new URL in IIS?

We currently have a site running of 2 URLs OldSite.subdomain.domain.example newSite.newDomain.example There is the talk of getting rid of the 1st URL completely. Is there anything that can be done ...
1
vote
1answer
29 views

How to Redirect all subdirectory pages to another?

Due to duplicate content issue, I want to redirect all pages of /articles/* to newly created sub directory /article/*. How do I redirect all pages of /articles to /article using .htaccess file?
1
vote
1answer
30 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> ...
0
votes
0answers
20 views

How do I locate files that appear to be located before the webroot?

I'm now administering a site for a small professional organisation. The website is hosted with GoDaddy. Most of the links don't work as the site was migrated back from https to http. All of this work ...
2
votes
0answers
125 views

Nginx + haproxy (or sslh) does not work without trailing slash in URL

Have a setup like the following: haproxy listening on 443 -> nginx listening on 4545 I have also tried this with: sslh listening on 443 -> nginx listening on 4545 This is on ubuntu server For ...
1
vote
1answer
28 views

Redirects for eCommerce Site Migration

I'm in the process of migrating my ecommerce store to a new platform/server. I have some questions regarding redirects: The website was made in asp.net and a lot of the product listings have ...
2
votes
0answers
37 views

After redirecting to canonical domain and HTTPS, Google Search Console reports most of my pages are now excluded

In Google Search Console - Coverage for one of my sites it says : Error 0 Valid with warnings 22 Valid 10 Excluded 11.1k Expanding Excluded, it's 6,000 for pages with redirect and 3,400 with a soft ...
0
votes
0answers
34 views

How can I access https file via https request without 403 forbidden in IIS?

I recently installed a site certificate to secure our website. We sell software and there are many installed users who are using some pre-website change versions of our software. Internally, the ...
4
votes
1answer
63 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 ...
3
votes
1answer
47 views

Recover SEO after accidentally redirecting to another site

My website domain is a.example. I need to change/move to a new hosting. While doing this on my new host, I accidentally made an redirect error that make my URLs (.htaccess): a.example/article-1/ ...
2
votes
1answer
60 views

Redirecting using rewrite rules from international top level domains to a language subdirectory doesn't change the domain name

I want to change from TLDs to TLD and language code. Right now we have 4 TLDs for our webpage: example.de example.com example.nl example.fr Now I want to change our settings of our CMS (Contao) to ...
2
votes
1answer
80 views

How to stop someone from registering domains that mimic more popular websites to abuse typos?

Years ago I had a problem that my browser was opening Aviasales website instead of Imgur (the most popular image hosting, you know). The tech support guy said I have some malware and should check ...
0
votes
1answer
95 views

MediaWiki: Avoid multiple page redirects

I have an all default MediaWiki website: No added CSS/JS, No added extensions or custom PHP. I run the homepage of that website in Google Pagespeed Insights and I get: MediaWiki: Avoid multiple ...
1
vote
1answer
53 views

How to deal with IP redirection and Googlebot? [duplicate]

My client wants country-based domains for their customers. For example, all customers from UK will be taken to the .co.uk site, even if they visit the .com site. And same for other countries. I have ...
1
vote
1answer
37 views

Why is Google giving me Page with Redirect error when trying to index the page?

I'm trying to index a landing page through the Google Search Console. The result I get is error Page with redirect: The URL is a redirect, and therefore was not added to the index. The error ...
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 ...
1
vote
1answer
90 views

Redirect to homepage based on server error code with htaccess

I just took over management of a small HTML website. I discovered the security on the website was almost non-existent because full directory browsing was possible. I have since disabled directory ...
1
vote
1answer
38 views

Migrating out of Medium

I'm moving my company's blog out of Medium to a subdirectory of our domain name. We have three blogs, one on a subdomain (when Medium still allowed it) and two as regular Medium organization blogs. ...