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
1answer
22 views

What is the SEO impact of multiple redirects that return to the current page after setting a cookie?

We have a situation where we need to set a cookie on a user's session. In order to do this we currently have a series of redirects in place: Initial request > 30x to get the cookie > 30xset the ...
2
votes
1answer
25 views

http to https redirect triggers “Duplicate without user-selected canonical”

For some reason, my Main URL (https://www.foxteller.com) cannot be indexed because of my domain redirects in the apache2 config. My redirects go as follows: http://foxteller.com/ > https://www....
3
votes
0answers
29 views

Rendering Issue - Homepage

Recently, my client's hosting provider migrated http://kastenhandelaars.nl to http://indoorhomeline.nl. (both Wordpress websites) Appropriate redirects were placed and we changed the homepage. ...
0
votes
0answers
28 views

HTTPS Re-directing

We built a site for a client to advertise a new block of apartments they had built. The apartments have now all been sold so we have been asked to forward the domain to another domain until there is ...
2
votes
2answers
36 views

Do non-existent 'category' pages in URLs present a problem for search engines?

Say for example if I have a news site and my URL structure is: example.com/news/random-article If there is no page at example.com/news/, in other words it results in a 404 error, is that problematic ...
1
vote
1answer
39 views

Redirect to website with parameters - namecheap

I'm struggling to redirect using the namecheap dashboard. Specifically I want to redirect based parameter. So for example: mywebsite.com/2345 would redirect to otherwebsite.com/query?=2345 Is this ...
0
votes
1answer
33 views

Redirect if URL contains /product/ (htaccess) [closed]

I've tried dozens of rules in my htaccess, but none have helped me. I have a website where I want to redirect users to a new page, based on a word in the URL. So https://www.example.com/product/...
1
vote
1answer
34 views

Redirect from www and http to https doesn't work on sub-domains

I am trying to redirect all www and non-https requests to the HTTPS only versions with Apache server. I don't need or want www or non SSL URLs at all. The issue is that with the 2 different snippets ...
1
vote
0answers
17 views

Yoast purge plugin caused crawl errors, getting more even after removing it

I'm using the Yoast SEO plugin on my WordPress site, and when you upload media to WordPress media library, it makes a copy of the image or file and creates a file path (this is normal). However, all ...
1
vote
1answer
34 views

Community homepage: domain root redirect to subpage for logged-in users bad for SEO?

I run a community website. I plan to distinguish between guests (wich also contains search engines) and logged-in users for the domain root, because logged-in uses should see an overview of new ...
0
votes
1answer
38 views

301 redirect in the htaccess file issues

This is driving me crazy, can anybody tell me why this 301 redirect does not work. I just get a 404 error with the old /about page. Here is the code for info: {ENV:WPR_SSL}.html%{ENV:WPR_ENC}" -f ...
3
votes
4answers
2k views

Should I redirect “ugly” URL to friendly URL?

I use mod_rewrite to rewrite https://example.com/?page=some-page&tab=2 to https://example.com/articles/some-page/2. But people can still access both URLs. I want to know: should I redirect the "...
0
votes
2answers
24 views

Do follow link redirection

I am new to SEO and using WordPress. I got a do-follow back link from a website. The link's structure was /2018/03/03/abc/. After that I changed the permalink structure. So the link became /abc and ...
0
votes
1answer
19 views

My team wants to move news section of our website to subdomain [duplicate]

My team wants to move news section of our website to subdomain ex "news.website.com" does it affect SEO? Can anyone tell me pro and cons of this thing?
1
vote
0answers
17 views

Temporarily turn off redirects on all virtualhosts

Is there a configuration parameter I can set in the global configuration to disable redirects in all virtual hosts? I've got a server with a bunch of virtual hosts with varying configurations, many ...
2
votes
1answer
17 views

When redirecting to another domain, to which domain will HSTS apply?

Assuming the following, what domain will be HSTS'ed for the next year, foo.com or bar.com? RTFM (RFC6797) doesn't help much. > GET / HTTP/1.1 > Host: foo.com [ ... ] < HTTP/1.1 301 Moved ...
1
vote
0answers
49 views

LinkedIn & Slack ignore translated meta tags

Our website is a WordPress site with 2 different languages. Original is German and we use Weglot plugin for translation into English. So the problem is that LinkedIn and Slack are picking the German ...
4
votes
1answer
52 views

Reasons to use a custom 404 page that redirects with code vs a 301 redirect?

We are moving a website from Joomla to Mura and some of the pages are going to be located at different URLs. I can set up 301 redirects in the rules section of the web.config file in order to ...
0
votes
1answer
14 views

SEO when forward domain in global rank vs local region?

I have one .ir domain and google map services not works on .ir domains, I want to get .org domain and set SSL EV for this .org domain then forward .ir to .org domain. one web app is installed on this ...
1
vote
1answer
30 views

Wordpress regular expression redirect with redirect plugin

I need to redirect all traffic for a suspended site and what I have tried so far is installing the redirect plugin and adding a redirect (tools->redirection->add new source: ^/(?!.*login.*|...
1
vote
1answer
23 views

.htaccess - redirect the contents of a subdirectory of old domain to new domain (WordPress) [duplicate]

I have problems with the redirection of my old website to our new website under a new domain. The old website was created with Wordpress and the simple redirect 301 was successful. However, some pages ...
1
vote
2answers
47 views

Does redirecting the client using the PHP header function always work in client's modern browsers?

I want to redirect users back to login page if they wrote the wrong password. I usually use header(location: "login.php?msg=wrong password"); when they type the wrong password or something. Does this ...
3
votes
1answer
38 views

If redirects for variations are in place, can I safely consolidate down to one Google Search Console property?

I am redirecting using .htaccess to always use www, always use HTTPS. At this point, can I remove the duplicate Google Search Console properties (non-www and http)?
0
votes
1answer
55 views

SEO: Is a redirect without using 301 but a PHP script, OK?

I've been reading about redirection, and how it can affect (or not if done properly) SEO. I'm changing my website's content platform from Drupal to a PHP custom made code. In my current site I have ...
1
vote
1answer
19 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
265 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
51 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
41 views

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

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
33 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
38 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
34 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
177 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
60 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
36 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
12 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
33 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
23 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
37 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
64 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
12 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
39 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
53 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
36 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
23 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
30 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
16 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
117 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
21 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 ...