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

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.

0
votes
0answers
18 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
20 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
24 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
32 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 ...
1
vote
0answers
32 views

Best practice for moving subdomain to new root domain while keeping url structure + SEO [closed]

I am looking for best standards for 301 redirects and complete domain migration that preserves SEO rankings. A redirect from subdomain to root domain, root to root domain, keeping basic url structure, ...
3
votes
2answers
44 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 ...
0
votes
0answers
41 views

My website incorrectly redirected to another site until I cleared my browser cache. Why?

I have a domain registered at GoDaddy and have configured it to run a web application. Apparently https://www.example.com points to my web application but https://example.com redirects to a seemingly ...
2
votes
1answer
86 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
41 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
125 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
132 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
107 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 ...
1
vote
0answers
21 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
9 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
62 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
7 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
36 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
17 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
104 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
16 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
2answers
164 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
25 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
35 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
155 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
109 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
21 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
42 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 ...
3
votes
1answer
134 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
36 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
8 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
515 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
70 views

Unexpected Landing Page

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
269 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
42 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
38 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
10 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
228 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
33 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 ...
2
votes
1answer
36 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
28 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 ...
1
vote
0answers
27 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 ...
1
vote
1answer
23 views

How can I redirect all WordPress post URLs that don't contain a subcategory to prevent duplicate content?

On my WordPress site, I have this URL format: /%category%/%postname%/ When I create a new post and select a parent category and a sub-category and select sub-category to default then WordPress ...
0
votes
1answer
34 views

Subdomain redirection to external subdomain

I need to create a redirection from my own subdomain to an external subdomain, like subdomain.domain.com -> subdomain.external.com. So if anyone try to enter in my subdomain, it redirects ...
1
vote
2answers
48 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
0answers
103 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 ...
2
votes
0answers
65 views

.htaccess for two languages and corresponding redirect for every page based on accept-language

I have a website www.example.es, with this structure: www.example.es index.php 404.html somepage.html www.example.es/en index.php 404.html somepage.html I want to redirect any language but es to ...
1
vote
2answers
103 views

IP address redirect works, Domain redirect does not

Similiar to issue found here. Running debian, apache2, trying to redirect example.org.com to example.org.com/aplication/calculator. I have enabled mod_rewrite hence why IP redirect works. However if ...
3
votes
1answer
142 views

Redirect a domain to a sub-page on another domain

(Examples below are illustrative only and not real domains.) Imagine I have turtles.com and the site has been up for some time. Now imagine that I have reptiles.com. Would it be "bad" (for SEO, ...