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
0answers
15 views

How do I handle server redirects on IIS to route requests to two different domains?

I have a domain www.example.com which is running on IIS server and the site content is in ASP.NET. I am migrating part of the site (www to www) to AEM and the rest of it will sit on old.example.com (...
1
vote
0answers
13 views

Redirecting in NGINX with masking target URL

I've set up redirection on NGINX with the help of this answer and now I want to set up it with hiding redirection from user, i.e. keeping original example.com. Things I've tried: rewrite server{ ...
1
vote
1answer
37 views

How to map many old URLs to a new host with a redirect under Apache cPanel?

I moved some of the content on my website to an external site. However, a lot of places on the Internet still link to the missing pages, resulting in 404 messages. What is the best method of ...
1
vote
1answer
18 views

New professional blog; should I redirect from my personal blog, or leave content both places?

I've been an on-and-off (mostly off) blogger for years, mixing personal interest and professional topics on a personal blog. I've recently created a new professional website where I duplicated the ...
2
votes
1answer
39 views

Use .htaccess to remove a directory and .php extension from the URL

I am running a Wordpress website, but I have some folders not related to the wordpress CMS, but in the same directory where all Wordpress folders are. The .htaccess in root WP folder has its standard ...
2
votes
1answer
27 views

Redirecting index.html to root + folder index.html to root folder? (multilingual)

I have example.com page. I want a homepage without index.html (example.com/index.html -> example.com) RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^(.*)/index\.html$ /$1/ [R=301,...
1
vote
0answers
19 views

Redirecting affiliate link: is it okay to add nofollow and noreferrer only to the affiliate link and not the pretty link?

I run a Wordpress website and normally use the plugin Thirsty Affiliates to redirect/cloak my affiliate links with a prettier link. Wordpress adds the noreferrer and noopener attributes to the pretty ...
2
votes
1answer
90 views

Why do my analytics report that index.php appears in URLs despite friendly URL rewrite rules?

On a website i use mod_rewrite and PHP to create clean URL's. My .htaccess (summary) will look like that shown below: RewriteEngine On #oude pagina's RewriteRule ^nl/links/(.*)/index.php$ /...
2
votes
1answer
37 views

Redirect hundreds of subdomains to the main domain with path forwarding, use .htaccess?

I want to redirect from a subdomain to domain along with URL path forwarding. Example: abc.example.com/products.html TO another.example/products.html The trailing URL should be preserved. We ...
2
votes
1answer
58 views

.htaccess, redirect all to bye.php, even with more slashes, with exception

I need, in .htaccess, redirect all behind domain, but even with more slashes and with slash or no slash at the end, but with one exception. For example example.com/all/sites/should/redirect/to/one/...
3
votes
2answers
50 views

Redirect root domain to path

Searched all questions by redirect keyword (e.g. 1, 2) but none of them fit my case. I want to redirect my domain (www.example.com) to another (sub-)domain including path and query if possible: www....
0
votes
0answers
18 views

Wordpress with Ecommerce Software on Subdomain

I've just finished building a wordpress site for the company I work for. The original plan was to build out the store with woocommerce. However we have over 11,000 products and orders need to work ...
2
votes
0answers
30 views

Google search console reports indexing my pages with pagination parameters even though they redirect

I recently saw in search console that Google is indexing some of my WordPress posts with pagination. For example example.com/post/page/2. The coverage report says "indexed but not submitted." It ...
1
vote
1answer
100 views

htaccess redirect based on referrer URL string

I have a 3rd party who POST's to a specific page on my website. They post a file and my site does some wizardry with the contents of that file. The request URL would be for example https://example....
1
vote
1answer
30 views

Do redirects affect google analytics?

I have a website that redirects in the following manner: https://example.com/drugs/paracetamol.html http://example.com/drugs/new-paracetamol.html - 302 https://example.com/drugs/new-paracetamol.html -...
2
votes
3answers
139 views

Using htaccess to force HTTPS doesn't work

NEW EDIT 28/oct/19 → I edited the .htaccess file as you said AddHandler x-mapp-php5.5 .php # HTTP to HTTPS redirect RewriteCond %{SERVER_PORT} 80 RewriteRule (.*) https://www.bebechan.net/$1 [R=301,...
3
votes
1answer
79 views

How do I redirect a subdomain with a wildcard?

I've an old subdomain that was being used as a whitelabel. I'd like to redirect the subdomain to a page on my main domain. I was thinking the best way would be a htaccess redirect. RewriteCond %{...
3
votes
0answers
34 views

Redirected to www, but Google is indexing no-www without snippets, should I use noindex instead?

I started my blog a month ago and was using non www version for my website. Then, I recently decided to stick to www.example.com version. So I changed it and Google has indexed the www version ...
1
vote
1answer
12 views

.htaccess HTTPS fowarding still redirecting to a folder which I have removed from the rule

I have the following simple code in my .htaccess file in order to forward my domain to the HTTPS version of the website: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://...
1
vote
1answer
15 views

See Google Analytics tracking stats from short cross domain redirect URL used in print media

I am using a different domain for some ads to track how many people access the main site through this domain. How can I see this in Google Analytics? I have DOMAIN A (on the ad) redirecting to ...
0
votes
1answer
48 views

Redirecting URL with & without query string?

If I setup a 301 redirect for the first URL path below will that also redirect all the paths below that contain a query string? For example: /6-light-oval-chandelier-espresso?pp=0&epik=...
0
votes
0answers
30 views

Finding URLs that redirect to a given website

Is there any way to find all URLs that (permanently) redirect to a given website? E.g. www.ubercab.com redirects to www.uber.com. So I'd want a way to determine that www.ubercab.com redirects without ...
3
votes
1answer
45 views

htaccess conflicts

The issue that I'm currently forced to handle is related to a folder structure URL being redirected to the same folder structure URL but with a different string. So page-a used to exist but that ...
1
vote
1answer
120 views

Google Search Console: URL is not on Google (page with redirect)

I have just created a personal website which I host as github page and recently hooked it up with a custom domain. (In this post I changed the actual URLs to webmasters-example.com and webmasters-...
2
votes
2answers
113 views

301 redirects for asp pages to html

So I've redesigned a site that was built comprising of solely .asp pages and redid it using .html pages. I deleted the old site and uploaded the new, and uploaded my .htaccess file with code along the ...
4
votes
1answer
37 views

Reorder parts of URL path to put date together using .htaccess redirects

old permalink: https://www.example.com/2019/cat/subcat/10/25/post-name/amp/ new permalink: https://www.example.com/2019/10/25/cat/subcat/post-name/amp/ How can I redirectmatch the old format to ...
3
votes
1answer
39 views

What is the Cloudflare equivalent of these two .htaccess redirect rules?

I usually set up my sites to rewrite URLs in the following cases: All http traffic is redirected to https (and www), with a 301 All non-www traffic is redirected to www (and https), with a 301 In ....
2
votes
1answer
23 views

wordpress multisite htaccess redirect site to TWO subsites

EDITED: I've split a website into two subsites in a multisite enviroment. The old site was moved to a subsite, and renamed old.mysite.example. This will be faced out at some point. During ...
1
vote
1answer
38 views

Use .htaccess to redirect to add .txt extension

I have a .txt file on my hosting and would like to redirect to it if somebody enters an specific website within their browser, e.g. example.com/webpage --> redirects to --> example.com/...
1
vote
1answer
102 views

How to mask redirect with Google Domains

For some reason, Google Domains does not have a mask feature. Is it possible to do this using custom resource records or synthetic records?
0
votes
0answers
19 views

m.me links not working chrome mobile

I just got into a problem when links to messenger (m.me/PageNumber) are not working on mobile chrome. It works fine on desktop chrome, it redirects straight to messenger.com/PageNumber. But on ...
2
votes
1answer
31 views

How to rewrite using .htacess when there is a ? (question mark) at the beginning of the URL?

Many JS functions on my site are sending Ajax request to /?something=3213214 but I need to redirect them to /something=3213214 When I do: RewriteRule ^test/(.*) /$1 [R] It does redirect /test/...
0
votes
0answers
5 views

Redirect sub.domain.com/folder1/ to sub.domain.com/folder1/folder2/

I'm trying to redirect sub.domain.com/folder1/ to sub.domain.com/folder1/folder2/ but I don't know-how. I've tried so for this but without success. RewriteEngine On #If the host is "sub.domain.com" ...
1
vote
0answers
26 views

Why does turning off “Force SSL with https redirect” keep http links redirect to https?

I realize this question can be an XY one. After upgrading my site from http to https, FB OpenGraph og:image not pulling images anymore. The solution seems to be using http links rather than https in ...
3
votes
1answer
60 views

HTTPD Redirect Doesn't Work with Environment Variables

We want to redirect users from an old domain to a new domain defined in an environment variable: SetEnvIfExpr true SERVER_HOST_NAME=mynewdomain.example The follwoing works in Apache 2.4 to redirect ...
1
vote
3answers
45 views

Merge a small site into a larger one while preserving SEO

I have a site with 10 pages of small tools for developers. I have a good traffic on it. I want to move all site data to be part of another big portal (hub for developer tools). I also want to ...
1
vote
1answer
40 views

Using IIS URL Rewrite module instead of Global.asax for complex redirect rules

We have a legacy ASP.NET website in which complex redirect rules are coded in Global.asax. Actually this logic processes requests with several optional or variable parts like {http|https}://[www.]...
1
vote
1answer
54 views

Stop URL tag redirection to my homepage

I'm trying to find a way to stop tag redirections to the homepage so that https://example.com/?something stops redirecting to https://example.com. Similarly, any URL which is followed by a question ...
0
votes
2answers
54 views

How to redirect example.com to http://example.com?

I have a blog at blogger.com, for which I got a domain name from godaddy.com. Recently I have decided to put some google AdSense ads on it to see how that goes. The problem I encountered is that ...
0
votes
0answers
8 views

Canonical Tags on Re-directing Form Pages

I'm adding canonical tags to our website and would like to add them to pages where users can download guides, but depending on user settings they could be redirected. If they are cookied, they would ...
1
vote
1answer
61 views

Multiple pages under single directory redirection to a single Page

I have the following scenarios for web page redirects 1) All pages under www.oldexamplesite.com/page/product/New-Design/* and All pages under www.oldexamplesite.com/page/product/nature-of-design-...
2
votes
1answer
21 views

Redirect root to subdirectory of current year if this exists, otherwise to a previous year that does exist

This kind of htaccess code is a little complex for me as I'm just beginning to understand redirects with htaccess. Could someone help me with this? Thanks in advanced.
0
votes
0answers
56 views

OVH active SSL for domains used for redirection

I have 2 domains: domain-a.example is my main website and domain-b.example is a domain used to redirect users to my main website (domain-a.example). On my ovh dashboard I set the redirection from ...
1
vote
0answers
59 views

Considering changing URL structure from example.com/page?id=1 to example.com/1/keywords but wondering what SEO impact is

Currently our website has a variety of community generated content that is under the URL structure of example.com/page?id=1. Some of these pages rank quite well on Google due to a combination of ...
0
votes
1answer
26 views

Changed website from http to https: what to do in Webmaster Tools?

So now I have two domains in my Webmaster Tools, as I have migrated to HTTPS. Migration here means that I have enabled HTTPS and enforced it, that's it. My question: should I do something in ...
1
vote
0answers
16 views

Old Url will no longer be available, how to redirect to new URL in IIS?

We currently have a site running of 2 URLs OldSite.subdomain.domain.example newSite.newDomain.example There is the talk of getting rid of the 1st URL completely. Is there anything that can be done ...
1
vote
1answer
32 views

How to Redirect all subdirectory pages to another?

Due to duplicate content issue, I want to redirect all pages of /articles/* to newly created sub directory /article/*. How do I redirect all pages of /articles to /article using .htaccess file?
1
vote
1answer
34 views

Using htaccess to redirect 301 for domain change

I am currently moving a domain from one to the other, this is not an HTTPS move but rather a move from exampleone.co.uk to exampletwo.co.uk. I am using this code: <IfModule mod_rewrite.c> ...
0
votes
0answers
20 views

How do I locate files that appear to be located before the webroot?

I'm now administering a site for a small professional organisation. The website is hosted with GoDaddy. Most of the links don't work as the site was migrated back from https to http. All of this work ...
2
votes
0answers
170 views

Nginx + haproxy (or sslh) does not work without trailing slash in URL

Have a setup like the following: haproxy listening on 443 -> nginx listening on 4545 I have also tried this with: sslh listening on 443 -> nginx listening on 4545 This is on ubuntu server For ...