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

.htaccess directives fail to redirect www to non-www URLs

I'm trying to redirect https://www.example.com to https://example.com. I'm running Ubuntu server 2020 lts with Apache 2, PHP 7 and Let's Encrypt SSL. My file structure: logs/ private/ public/ └ ...
user avatar
3 votes
1 answer
207 views

Redirect URL ending in certain `variable=value` query string, to `URL?variable` (i.e., strip `=value`)

I'm trying to create a 301-rewrite for URLs ending with ?amp=1 to nearly the same URL and query string, just stripping the value (=1). Examples: https://example.com/?amp=1 should redirect to https://...
user avatar
0 votes
1 answer
45 views

Send a different image from my web host if it was already requested by an IP address?

I am hosting an image with my hosting provider host gator and people can request it with www.example.com/image.png When an IP address requests the image www.example.com/image.png the first time it ...
user avatar
  • 103
3 votes
1 answer
167 views

Force HTTP to HTTPS except one page accessed via HTTP

I'm trying to redirect a website to HTTPS, but there is one URL that needs to be accessed via HTTP. Currently I just have this in .htaccess: Redirect 301 / https://www.example.com I need to have the ...
user avatar
1 vote
1 answer
374 views

Google Domains won't redirect `http` to `https` when Bluehost handles the DNS and website

I have a website hosted on bluehost, but using a domain from Google domains. I am trying to force it to always redirect http://example.io -> https://example.io from the google domains site. However,...
user avatar
1 vote
0 answers
34 views

HTTP to HTTPS redirect causes critical chained request in Google Page Speed Insights

My WordPress website is configured to use HTTPS. After running the site through Google Page Speed Insights, the report shows a section labeled Avoid chaining critical requests 1 chain found Expanding ...
user avatar
1 vote
1 answer
39 views

Do pages that have received no traffic in a long time still have any SEO authority?

Is there a rule of thumb for how to handle old content on websites? Should All pages that get removed have their URL 301 redirected to retain any SEO authority they may have. Or is it ok to assume ...
user avatar
  • 115
3 votes
1 answer
134 views

Combine multiple 301 redirects

I need to combine multiple redirects via my .htaccess in Wordpress for future site migration and re-launch: Domain change Force HTTPS Force www URL structure changes (important to keep juice here) I'...
user avatar
  • 31
0 votes
2 answers
511 views

Redirecting Old Domain to New Domain - Google SSL Warning

My client wanted his website republished under a new domain that was shorter. So we pointed the new domain to the website server and "forwarded" by 301 redirect from the old domain hosted on ...
user avatar
2 votes
2 answers
89 views

How to block access to all but homepage unless that access comes from the homepage?

Given a homepage at domain.com (e.g., https://example.com/), I want: outside requests to only be able to visit the homepage and no subpages that homepage to successfully redirect visitors to a ...
user avatar
  • 195
1 vote
1 answer
314 views

How to prevent discovery of URLs by search engines?

I crawled my Wordpress site using the Screaming Frog program and noticed a few issues which might have SEO implications and was hoping someone could help identify the problem (if there is one). N.B: I ...
user avatar
  • 113
2 votes
1 answer
86 views

Can I use Google Analytics on URL shortener redirects powered by PHP?

I have a short URL website like Bitly which currently redirect users with PHP from my site to a site of their choice. I want to add Google Analytics to the redirect pages but I am stuck on the problem ...
user avatar
2 votes
1 answer
185 views

redirecting from www url to non-www url in Google Firebase static hosting

I am using Google Firebase static hosting. When a user types and enters www.example.com, I want the address to change to example.com and show the user content of example.com. How can this be achieved? ...
user avatar
  • 141
2 votes
0 answers
32 views

sub domain to different computers [closed]

I am hosting a personal website domain.tld and have a separate nas computer as nas.domain.tld and I only have 1 public ip address. I have successfully redirected nas.domain.tld to domain.tld:99 so ...
user avatar
2 votes
4 answers
204 views

Getting Google to Index a new landing page instead the Home page

I have a website where the home page ranks mid page 1 for a key search term. for example "widgets london" which for example indexes www.johndoeengineering.co.uk It is a highly competitive ...
user avatar
0 votes
1 answer
28 views

Determine if a site has been hacked (HTTP 203 leads to 301 then 302) [closed]

While trying to visit a site earlier that I've previously accessed without an issue, I was oddly redirected to some spammy dating site. Not wanting to try again, I used wheregoes.com to trace the ...
user avatar
  • 3
2 votes
2 answers
420 views

When I redirect a page with a 301, should I update my Sitemap immediately with the new URL?

Those pages are all indexed and rank well, so I want to be extra careful. This is my current sitemap.xml: /OLD_FOLDER/some-slug-1 /OLD_FOLDER/some-slug-2 /OLD_FOLDER/some-slug-3 I'm setting up 301 ...
user avatar
1 vote
2 answers
59 views

How can I do 301 instead of 302 redirects when there are multiple domains sharing the same site hosted in IIS?

I have several domains sharing the same site and use a default.asp as the default file where I test the SERVER_NAME variable and use Response.Redirect to redirect to the home page of the site ...
user avatar
1 vote
1 answer
159 views

I would like to set up a subdomain for my website that redirects to my discord invite link

Is there a way to Set a subdomain on my website to redirect to my discord invite? Is it possible and is it allowed?
user avatar
  • 13
1 vote
0 answers
78 views

GTM blocks anchor tag href redirect when rel="noreferrer" on Chrome/Firefox/Edge

A website has an anchor tag that redirects to the home page, when the tag has rel="noreferrer" on it, GTM will block the redirect but still trigger and count any click events for GA. Reason ...
user avatar
1 vote
1 answer
23 views

How to interpret this html page and where do I add meta tag

I'd like to redirect my webpage to another webpage. I used a template to develop the website and I couldn't read the code on this page. Could anyone tell me what does the code below means? --- layout: ...
user avatar
  • 13
4 votes
1 answer
80 views

Upgrading my website to be multilangual, is this use of canonical code correct?

I have a good search-engine ranked webpage written in Dutch (=NL) and I have just upgraded my site to be in French too. So I've created subdirectories for NL and FR, but my root/index is now exactly ...
user avatar
2 votes
1 answer
284 views

nginx https ip address to domain redirect

My website is pretty messed up: it shows up as an IP address in the google search results (https). I want to redirect this to my domain, but when I couldn't figure out how to redirect https to my ...
user avatar
2 votes
2 answers
41 views

Two subages on one website with almost identical content

I'm creating a website that is comparing stuff, let's say it compares programming languages for the sake of explaining my question. I'm building a structure where the url/slug will contain the two ...
user avatar
  • 123
2 votes
1 answer
85 views

Double redirect - referrer in headers

let's say we have redirects like this: (1) my shortener link -> (2) bit.ly -> (3) target URL Is it possible to check on the end (3) that user visit came from (1) my shortened link?
user avatar
  • 63
1 vote
2 answers
617 views

Do CNAME subdomains redirect to their target?

I've created the CNAME subdomain: tumblr.wp20201111.blog which maps to doigy.tumblr.com. However, when I load tumblr.wp20201111.blog in the address bar, it doesn't redirect to doigy.tumblr.com, it ...
user avatar
  • 1,634
1 vote
1 answer
34 views

500 Internal Server Error for *.html and *.htm files [closed]

I look after the website airandmore.at, it is a wordpess site. Now I ran into the problem that *.html and *.htm requests don´t work, for example do I get a "500 Internal Server Error" in ...
user avatar
  • 11
6 votes
1 answer
376 views

HSTS affect on SEO

I do back-end work work for a couple of fairly knowledgeable people in the SEO field (i.e. not people off the street just claiming to be SEO experts). One of them is advising that HSTS improves SEO, ...
user avatar
  • 5,935
0 votes
1 answer
42 views

Phantom redirect? I can't find or 'turn off' the redirect [closed]

I changed domains and redirected the old domain to the new one and then eventually completely deleted the hosting for that old domain. Recently I've decided I want to use it and I've opened up hosting ...
user avatar
2 votes
1 answer
118 views

Redirects without Permission: what legally can be done?

If someone buys a domain and decides to redirect or forward it to my site without permission, is there anything legally that I can do to stop them? Is there a crime they can be charged with? Can I sue ...
user avatar
2 votes
1 answer
1k views

How to Redirect URL with special Characters?

I try to redirect a special URL in .htaccess, as below: Redirect 301 /aor/%e2%80%9d https://www.example.com/outlook-repair/ But this seems does not work. I try to add quotes, as follows: Redirect 301 ...
user avatar
  • 399
2 votes
0 answers
32 views

I've moved to a new domain a long time ago but a site:search for the old domain still shows results, can I request removal of those now?

My website is located at example.cc. Another domain, example.com, redirects to it. I wonder why searching for site:example.com yields different results with site:example.cc? Shouldn't Google detect ...
user avatar
  • 586
1 vote
1 answer
54 views

Should I redirect the directory listing page of a parallel secondary directory to the primary directory?

I have a website where I have a few sub-directories to list services. So it goes like this. example.com/services/website-development.html example.com/services/web-development/e-commerce.html example....
user avatar
  • 11
-3 votes
1 answer
134 views

Redirecting domains on https without creating a certificate for them?

I own, say, 100 domains. I want to add redirect for each of them to a new domain. And not only to a domain, but a custom query string. For instance domain1.example/url1 -> domain11.example/url2 ...
user avatar
1 vote
0 answers
73 views

HSTS compatible .htaccess redirect from non-www to www that preserves URL path [closed]

UPDATE: The redirect actually does work! The site is a friends site and I was coming up with solutions and sending them to him. Turns out his website is running Joomla. After further troubleshooting ...
user avatar
  • 11
0 votes
0 answers
34 views

SEO - Removing old links from Google

I recently switched my company from Opencart 1.5 to Magento 2. I've created new SEO friendly URLs for the products, and wrote a redirect script in my .htaccess file that works on a majority of the ...
user avatar
1 vote
0 answers
29 views

Will redirecting based on mobile/desktop user-agent cause SEO or caching issues?

I have two versions of a website, the mobile version and the desktop version. Both websites are hosted on the same domain (www.example.com) and have a similar URL structure for most pages (www.example....
user avatar
0 votes
0 answers
30 views

What is the correct or most appropriate way to address phantom or untraceable 404 errors showing up in a website audit?

Currently I am running my site through neilpatel's website for the purposes of an audit on SEO - the analyzer continues to return a 404 error that i cannot find anywhere, following this URL structure ...
user avatar
  • 37
0 votes
0 answers
22 views

Redirecting home page to a subdomain, but keeping root domain for blog and ecommerce

This is a fairly unique situation, hence my question here. My client has an ecommerce business that includes both retail and wholesale customers. We recently changed her retail side over to Shopify ...
user avatar
1 vote
2 answers
38 views

Using two domain names in a single folder

I have inherited an English/French static web site. The original developer created it so all the html files are in the root directory of the English domain and added "-fr" to the French file ...
user avatar
  • 111
1 vote
1 answer
59 views

Will a .com SSL certificate cover a redirecting .com.ar domain?

we have a website with 2 different domains: www.example.com or example.com and www.example.com.ar or example.com.ar I want all requests redirected to www.example.com. I know I have to create two ...
user avatar
2 votes
1 answer
129 views

Redirect domain in CPanel without using htaccess so I can delete old domain

I have an old website that is being hosted on Apache/CPanel site. I'm being charged for hosting this site, even though it's being redirected to another site. I'd like to delete the hosting of the ...
user avatar
  • 2,856
0 votes
1 answer
58 views

Htaccess 301 Redirect only not working on Windows 8.1

Here's the code: RewriteOptions inherit RewriteCond %{HTTP_HOST} ^old\.olddomain\.example$ [NC] RewriteRule ^ https://newdomain.example%{REQUEST_URI} [R=301,L] # BEGIN WordPress RewriteEngine On ...
user avatar
  • 121
1 vote
1 answer
74 views

WordPress redirecting to itself

I have the following error in my apache2 error log (Ubuntu 18.04, local LAMP dev environment, PHP7.3), that I believe is causing a The page isn’t redirecting properly error: Apache Error Log [Thu Aug ...
user avatar
2 votes
0 answers
33 views

Will it improve SEO to clean up my WordPress tags?

I have had a website for 6 years and I create post for it every week. From the start (6 years ago to 8 month ago), I attached familiar tags to every post. Now: Some of my posts (100 posts) have many ...
user avatar
  • 21
2 votes
1 answer
855 views

301 redirect with regex: how to match any file at top domain level (not in a subdirectory)?

I need to redirect URLs of all .dmg files at domain's top level to specific folder. By way of example: http://example.com/file.dmg to http://example.com/downloads/file.dmg I can't hard code the domain ...
user avatar
1 vote
0 answers
119 views

Subdomain forward with masking on Bluhost

I am trying to forward with masking a Bluehost subdomain (login.example.com) to another Bluehost subdomain (login.example.ca). I did the following; RewriteEngine On RewriteCond %{HTTP_HOST} ^login....
user avatar
0 votes
1 answer
141 views

Should I create a separate site in IIS to redirect (wildcard) from one domain to another?

We are moving domains and servers. I have newdomain.example set up on new server (SSL). I want to shut off old domain. I will get old domain pointed to new server. Is it better in IIS to add the ...
user avatar
  • 424
1 vote
1 answer
427 views

Does pointing a URL via CNAME to another domain redirect via endpoint?

We have test1.example and we are going to shut that down on server 1. On server 2 we have test2.example. We are going to assign the CNAME of test1.example to test2.example. After doing so if someone ...
user avatar
  • 424
3 votes
1 answer
111 views

Show contents of third party page on subdomain without changing URL

I'm very inexperienced with DNS (forgive me for misusing terminology here) and am trying to configure a setup for a podcast I host. What I want is for https://feed.example.com to actually send users ...
user avatar
  • 131

1 2
3
4 5
32