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.

1
vote
1answer
13 views

IIS 10 giving internal error when attempting to redirect to HTTPS

I've looked at innumerable resources on how to set up a HTTP to HTTPS Redirect, but still it doesn't seem to work. Using IIS10 and the URL Rewrite module, here are my steps: I've generated a Self-...
1
vote
1answer
49 views

RewriteEngine .htaccess rules end up redirecting to example.net/https:/example.net

I'm starting to learn about the Apache .htaccess and I have some issues in my website... RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} RewriteCond %{...
2
votes
2answers
44 views

Installing WordPress with /wp path leads to redirect loop when index.html redirects to a shopping cart

So on my site, my shopping cart is located at example.com/zc2 I use this .htaccess file RewriteEngine On Redirect /index.html example.com/zc2/ So that anyone that lands on example.com will be ...
1
vote
0answers
31 views

How to identify the source of 301 redirect loop on a WordPress site when server side caching plugin is enabled?

Our WordPress site has developed a 301 redirect loop error when web-server caching is enabled. With server caching disabled and caching plugin installed and active the issue doesn't occur, but the ...
2
votes
1answer
30 views

What will happen to SEO if a blog has 100K attachment page redirects with 20k published articles?

Consider that there is an old blog, which has almost 10 or more images in every post they published. As everyone knows, WordPress creates an attachment link for every image we upload in a blog. For ...
1
vote
2answers
31 views

Rewriting URL of WordPress in a Subdirectory

I am renting some webspace and a domain from BlueHost.com on which I run a WordPress site. Let's call it example.com. WordPress is installed in the root folder. As I can run multiple sites on this ...
1
vote
1answer
28 views

How to redirect domain names which use my custom name servers?

My web hosting service allows setting custom name servers. For example, if my website is http://www.example.com/, I can set custom name servers ns1.example.com and ns2.example.com. When other domain ...
2
votes
1answer
30 views

Htaccess redirect pages from subfolder to root directory while preserving any query string

I have moved pages in various sub directories to the root directory and want to set up a 301 redirect for each page and keep any query string that might be present. For example: www.example.com/...
1
vote
1answer
35 views

Is it good for SEO to have domain alias that describes company service? [duplicate]

I have bought a domian that is like service.city.example Where service is eg. "haircut". Is it good to have this kind of domains as aliases to main domain company.example? What would be best for SEO,...
1
vote
2answers
34 views

Pinging Domain doesn't give A Record IP

Should pinging a domain give you the IP the same as the A Record? Are there conditions where it shouldn't? A client's website isn't pointing to the A record IP, it's point to a Cloudflare DNS server. ...
1
vote
0answers
9 views

Download link expired, going back to software presentation page, what redirect method to use?

When someone (user or bot) reaches an old download link like /download/yellow-wallpaper.zip?key=some-expired-download-key , user is sent back to file details page, e.g /yellow-wallpaper.html, where ...
1
vote
0answers
30 views

How can I migrate a single page application to a site with many URLs for SEO?

I will be migrating a single page application (SPA) to a normal URL structured site. Usually I would map the old URLs to the new URLs and use 301 redirects to the relevant URLs. In this case, that ...
1
vote
1answer
22 views

Point multiple domains to single page, with unique button based on source domain

I'm a software dev, but I'm green when it comes to web development and domain management. Let's say I've registered some domains: apples.example bananas.example cherries.example ...and [with a ...
3
votes
2answers
35 views

How to remove old domain that we don't have control over for branded searches that should only show our new site?

I changed my company website URL from www.tirnav.in to www.tirnav.com. Google Webmaster had already indexed my earlier website i.e tirnav.in and now when i search google for Tirnav Solutions it still ...
-1
votes
1answer
36 views

My subdomain will redirect to root domain. How do I fix this?

My Subdomain will redirect back to the main site. How do I fix this so it redirects to the subdomain? My main site is a WordPress adult site so I'll use example.com to explain. All I have in the ...
1
vote
0answers
11 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
33 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
51 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
33 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
37 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 ...
2
votes
1answer
14 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
19 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
28 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
14 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. ...
0
votes
0answers
20 views

Is screaming frog redirection chain report accurate?

The http version of the website has been redirected to https://www and then the www version has been redirected to non-www version. But screaming frog redirection chain report doesn't show any loop. ...
4
votes
1answer
45 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
20 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
26 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
34 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
50 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
94 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
311 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
49 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
210 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
687 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
36 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
23 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
69 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
38 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
23 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
283 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
2answers
446 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
30 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 ...