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 [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.

1
vote
0answers
13 views

Heroku and 123 Reg showing IIS page only on naked domain

I've got a site set up with SSL that works as expected when manually typing in 'https://example.com' or 'http://example.com'. However, when I navigate to just 'example.com' I get an IIS hosting page. ...
3
votes
1answer
41 views

Should redirects to the home page including a trailing slash?

The website URL is http://example.com but some pages have been redirected to http://example.com/, the version of the URL with the trailing slash. Should I change all redirects to the non-trailing-...
3
votes
2answers
55 views

Is it possible to redirect a domain while keeping that domain in Google search results?

I have a domain name, https://seo.example.com/, that is currently showing up in Google Search results. I want to set up a redirect such that when visitors view that domain, they are immediately ...
4
votes
2answers
41 views

Looking for advice on how to log redirects in Google Analytics

We have a number of redirecting pages in our CMS. These do not redirect across domains (such as vanity URLs), they are just to catch visits to old URLs that have changed. The redirects are not always ...
1
vote
1answer
41 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 ...
3
votes
1answer
34 views

Should I submit the redirects in XML sitemaps in the old website search console?

I have redirected https://www.example.com to https://example.com. Should I exclude all the redirected pages of the first website in its own search console? For instance should I include https://www....
0
votes
2answers
20 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 ...
1
vote
1answer
35 views

301 redirect not seen by googlebot

I have made a function on a wordpress site. The functions purpose is the following. 1) if the post is not found, redirect to the archive of the post. Should be fairly easy right? Well - according ...
0
votes
0answers
24 views

Do lots of redirection chains affect the site speed?

My client has lots of redirection chains. As I know redirection chains affect SEO link equity. But since they have done the redirections 4 years ago I assume they wont have any effect on SEO anymore. ...
4
votes
1answer
163 views

How can I redirect all PDF files with file names that don't start with “public” to the home page?

I would like to disable direct access to all PDF files except those with a public- prefix on the beginning on the file name (e.g., public-samplepdf.pdf) so they can be viewed in public. I'd like to ...
1
vote
2answers
23 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
0answers
20 views

Redirection and HTTPS [duplicate]

Hoping it's a stupid and basic question, but can't find the answer in Google, nor in search here. Website setup: http://www.example.com http://sub.example.com Then introduced SSL, so now it's: ...
2
votes
1answer
114 views

How to have .htaccess display 404.html for child pages

I am working on a website example.com that has an error page example.com/404.html. Here's my entire .htaccess file (Apache): # Forces HTTPS RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(....
2
votes
1answer
79 views

How would you write an http to https redirect rule for web.config on IIS8 that would go directly to preferred domain with www.?

I have a site that we just setup with SSL and have a redirect rule set up in web.config. We also use the www. as the preferred domain. The problem I have is I want to skip the middle step in the ...
2
votes
1answer
128 views

Setting up Let's Encrypt with CloudFlare and dynamic IP

My setup is as follows: Dedicated server (Linux) with dynamic IP address NO-IP domain name domain name When I want to access my system (server), I access my domain, which redirects me to my NO-IP ...
3
votes
2answers
245 views

.htaccess using HTTP_HOST has one extra extraneous redirect when forcing HTTPS

When I use these lines in my .htaccess file, everything works well: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://example.com%{REQUEST_URI} [L,R=301] Then I tried to make it ...
2
votes
1answer
608 views

Redirect URL without lang directory to default language

This: example.com/test/ should redirect to: example.com/en/test/, but: example.com/es/test/ shoudn't redirect. in this case /test/ could be anything, with any number of levels (i.e.: /test/succeeded/ ...
1
vote
1answer
76 views

redirect my domain to my facebook page (for free)

Ok, it's neither my domain nor my facebook page. It's a page I made for some club and I keep it on my account using free hosting. The page is not being maintained but their facebook page is very good ...
1
vote
2answers
126 views

WordPress multisite ERR_TOO_MANY_REDIRECTS where the domain name ends up in the path for nonexistent pages

I have a WordPress multisite setup with subdomains. I have pointed five subdomains to it. I have also installed SSL to main domain and the other subdomains. I have written the below Redirect code for ...
0
votes
0answers
370 views

Google Domains fails to redirect https non-www, results in 403

I have a weird issue with Google Domains not redirecting https and non-www domain. When I enter example.org it correctly redirects to https://www.example.org, however when I enter https://example.org ...
4
votes
2answers
3k 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 ...
2
votes
2answers
44 views

Is it correct to redirect the old site to the new domain and the further redirect for new URL capitalization?

I am wondering whether this setup is correct. I have a website running HTTP domain1.example and I redirect links to domain2.example using a 301 redirect. domain2 works fine but I decided to ...
1
vote
0answers
27 views

How can I point a subdomain at a web app without the domain name changing in the browser address bar?

I have two apps app1 and app2 on 000webhost. Say app1 has domain www.example.com which uses cloudflare. I want subdomain.example.com to be the main domain of app2. How can I do this? I have created a ...
1
vote
0answers
11 views

Free domain redirect with simple statistics? [closed]

I wish to redirect my domain to a social media site. Until now it's been a 301 redirect provided by the domain registrar. Domain -> Social media site But what if I want to collect some simple ...
3
votes
1answer
88 views

HTTPS redirect, exclude script parameters from URL

My goals: 1. http://example.com/page/index.php -> https://example.com/page/ 2. http://example.com/page/ -> https://example.com/page/ 3. http://www.example.com/page/ -> https://example.com/...
2
votes
0answers
8 views

How to avoid WordPress visitor access to wordpress/ folder instead of domain in Plesk after making that folder the site root?

I used Plesk and installed WordPress at example.com/wordpress After a while, I moved the access of my WordPress to root (example.com) But, instead of moving all files to the root directory (httpdocs/...
2
votes
1answer
40 views

Are these 3 redirect rules equal?

I would like to redirect the non-https and non-www versions my domain to the https and www version of it. I'm a bit confused by the options. Are these redirect rules equal for my purpose? # REDIRECT ...
1
vote
0answers
26 views

External URL with Redirection - How can I handle without negative SEO

This is a WordPress site. There are some post like Best WordPress Themes, Best Articles, etc Because of some technical reason, we can't just add linked those items. This is a sample article. ...
2
votes
1answer
36 views

point custom .com.ar domain to github pages

...yet another question about github pages and custom domains, sorry. I couldn't find a solution in other questions, I think that's very specific to my registrar. Also, I'm not a webmaster or sysadmin,...
4
votes
2answers
818 views

How to force ssl and www for a subdomain as an independent domain?

I have own the example.tld . I want to force SSL and https for root-domain and all of its subdomains. I have used below code in .htaccess file of root-domain: RewriteEngine On RewriteCond %{HTTPS} ...
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 ...
1
vote
3answers
742 views

web.config redirects only for specific domain

I'm stuck with redirecting for specific domains. The setup consists of azure webapps which bring their own domain *.azurewebsites.net, I want to exclude those from redirecting. For additional domains ...
2
votes
1answer
47 views

Redirect a sub-domain to a locally hosted site

I have a domain like example.com, it is hosted on some web hosting service. I read this article on how to convert your laptop/desktop into a server and host internet accessible website on it: part ...
1
vote
1answer
46 views

What's the SEO cost of rel=canonical references leading to redirects?

On www.ubuntu.com we recently started including rel="canonical" tags on every page by default, following Google's recommendation. However, as you can see on e.g. https://www.ubuntu.com/cloud, the ...
1
vote
1answer
667 views

IIS HTTP/S rewrite with SSL offloading non-standard local port

I posted this in a different forum and got nothing, so I'm a bit desperate. Here is my scenario: IIS running sites on 80 and 443 - external.foo.com and https://external.foo.com On the same node, a ...
2
votes
2answers
148 views

How to migrate from the old domain to the new domain?

I just got finished with moving my site from one domain name to another. All old links on social media and search engines are broken. If I click on a link from reddit or Facebook it still points to ...
0
votes
1answer
23 views

Old domain redirected to new what happens in search index?

I have been having issues with another company who have been using a similar domain name to pass as me. After a long battle, I have managed to get them to stop doing that, so what they've done is ...
1
vote
2answers
53 views

Redirect to different subfolders according to geolocation without affecting SEO

I want to open different pages by default in different countries. But It affects SEO of main URL. Like my website is example.com. I want to open this URL in India and example.com/abc outside India ...
1
vote
2answers
47 views

How to redirect ALL traffic from example.com to example.org with Rochen hosting so that HTTPS works

I'm using Namecheap (www.namecheap.com) domain with Rochen (www.rochen.com) host. I'd like ALL traffic to go from example.com to example.org. Things I've tried: cPanel alias. I could not get this to ...
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 ....
1
vote
1answer
42 views

Can similar pages with rephrased titles be combined using redirects but still ranking for the different title phrasings?

I'm building a website where each piece of content can have multiple different title/body phrasings which got the same meaning, and each phrasing got its own page (with links connecting to its content ...
0
votes
0answers
9 views

Ranking Drops after Redirect Pages [duplicate]

My site was hacked a few months back, hacker published many pages on my site and those urls indexed in Google. Then I removed all those urls and redirect all those indexed (404 not found) pages on ...
6
votes
3answers
769 views

Is an .htaccess edit necessary when enabling Cloudflare SSL?

I have recently changed 3-4 of my sites to Cloudflare SSL. After that, I went to General Settings on WordPress and changed URLs from HTTP to HTTPS. And it redirects from HTTP to HTTPS without any ...
1
vote
1answer
82 views

Google Analytics reports that referred visitors come in an an unexpected landing page that isn't where the link is pointing

There is this website's page (similar to reddit) which references my website's main page. I recently realized an increase on my bounce rate. Then I checked and saw that in the last 10 days, users ...
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 ...
1
vote
0answers
59 views

Facebook debugger is caching different IP addresses for same domain

I have problem with Facebook debugger, I tried to scrape domains few times, and I got strange results. Facebook debugger is caching different IP addresses for the same domain. I saw a few different ...
3
votes
1answer
40 views

From an SEO perspective when would you want to redirect a NEW domain to an OLD domain?

I recently took over as webmaster for a company who lost their webmaster on poor terms, so asking him isn't really an option. Some years ago, this company got a new domain name, and for some reason, ...
0
votes
0answers
25 views

Redirection of .html to .php (web config) [duplicate]

How do I redirect .html pages to .php, (www.example.com/about.html -> www.example.com/about.php) on a Windows server?
3
votes
1answer
730 views

HTTP to HTTPS redirect for a specific domain through web.config

I'm trying to do a HTTP to HTTPS redirect on a GoDaddy web hosting platform. I have the Windows hosting platform and I'm editing the web.config file. There are multiple domains under this hosting ...
2
votes
2answers
35 views

Are there downsides to redirecting of mobile pages to desktop for desktop browsers?

A lot of sites have separate views for desktop and mobile, such as example.com and example.com/m/. Almost no one redirects desktop users to desktop if they somehow end up clicking mobile link. Is ...