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
0 votes
1 answer
939 views

Is it possible to redirect HTTPS to HTTP without warning?

One of my clients now doesn't want to use a SSL certificate. But the home page of their site has been indexed with HTTPS. I have already redirected HTTPS to HTTP but it shows a warning every time. Is ...
user avatar
1 vote
1 answer
1k views

SSL certificates: Does a secondary domain which does only redirect need a seperate SSL certificate?

Some customer gave me the input that if you have a website with a domain like https://www.example.com which has a lot of secondary domains only redirecting like https://www.example.eu https://www....
user avatar
  • 205
1 vote
0 answers
64 views

How best to perform 4 million 301 jpeg URL redirects to content based addressing on nginx?

I certainly don't want to list 4 million redirects in my nginx config files... what's the best practice with a large number of redirects like this? They'd be permanent as well as the old links live ...
user avatar
1 vote
0 answers
22 views

Should an XML sitemap include redirecting URLs? [duplicate]

Should I include URLs that redirect in my site's XML sitemap? If page X is permanently redirected to page Z, would I include the page X, or only page Z?
user avatar
0 votes
0 answers
96 views

Can dynamic DNS clients keep "URL Redirect Records" updated at Namecheap?

Can a URL Redirect Record at Namecheap be updated with a dynamic DNS client? I would like to serve a website on a non-standard port, and thus cannot use a type A record. I would like it to work as ...
user avatar
3 votes
3 answers
122 views

How will geo-ip redirects affect which geo-targeted pages Google indexes?

We are an Indian company and have an online store. We sell in India as well as abroad. The products are sold at different prices in India and abroad and there are two site versions for Indian prices ...
user avatar
  • 31
3 votes
1 answer
43 views

Redirects for both paths and posts in the path

I rarely need to do redirects and when I do they're usually simple. This time I'm trying to do something a little more advanced and I'm stumped. Regex is hard :) This is a WordPress site and I'm ...
user avatar
6 votes
1 answer
10k views

Redirect all subdomains from one domain, to the equivalent subdomain of another domain using DNS and nginx?

I have foo.example and bar.example. I want sub.foo.example to redirect (not be aliased with) sub.bar.example, same for asdf.foo.example and asdf.bar.example, etc, for all sub domains. I know I can ...
user avatar
5 votes
1 answer
1k views

How can I redirect my Google App Engine naked domain to www and preserve the URL path

Google Adsense now requires a file "ads.txt" in the root of the domain: Upload the file to the root level domain of your site (for example, https://example.com/ads.txt). I use enom with Google ...
user avatar
1 vote
1 answer
613 views

Does a redirected URL used in an anchor count as backlink?

If another website puts an anchor to our app to https://URL1 and this link redirects to our website at https://OURCOMPANY, does Google count this as a back link to our website?
user avatar
4 votes
1 answer
262 views

What should I do about penalized websites that have been 301 redirected to mine?

Someone is doing a negative SEO attack on my site 301 redirecting toxic sites to my site. I have done research and nobody online seems to have an answer. Would disavowing the domain doing the 301 ...
user avatar
  • 41
2 votes
5 answers
665 views

How do I redirect a site for Google but not for users?

I have a saas app, where users can login to the app from example.com/app. Now I have created a new version of the app which will be example.com/dashboard. What I want to do is let Google know that ...
user avatar
  • 121
1 vote
0 answers
27 views

All HTTP URIs redirect to the HTTPs of homepage [closed]

I have an issue on my website, where all http URLs redirect to the https of the homepage. For example, http://example.com/ppc-services/ redirects to https://example.com/ I have added this to ....
user avatar
  • 11
1 vote
0 answers
19 views

Does Google penalize for redirecting too many expired domain to my site? [duplicate]

I used to 301 redirect expired domains to my site and now I think I made a mistake. If we redirect more than a single domain to a particular website, will hurt SEO?
user avatar
0 votes
1 answer
58 views

Is it necessary to hide affiliate links?

I currently include affiliate links on my pages. The links go to PHP files that in turn redirect to the affiliate pages using the following header code: <?php header('Location: http://www.affiliate-...
user avatar
1 vote
0 answers
47 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 (...
user avatar
2 votes
0 answers
982 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{ ...
user avatar
1 vote
1 answer
76 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 ...
user avatar
  • 646
1 vote
1 answer
27 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 ...
user avatar
  • 157
2 votes
1 answer
4k 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 ...
user avatar
2 votes
1 answer
2k 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,...
user avatar
1 vote
0 answers
100 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 ...
user avatar
  • 11
2 votes
1 answer
408 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$ /...
user avatar
2 votes
1 answer
290 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 ...
user avatar
  • 21
2 votes
1 answer
103 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/...
user avatar
  • 185
2 votes
2 answers
624 views

Redirect visitors to equivalent pages for a multilingual site without effecting SEO?

I have 5 language on my website example.com (main page on English) example.com/esp (Spanish) example.com/ger (Germany) example.com/ru (Russia) example.com/it (Italy) What the best way to redirect ...
user avatar
3 votes
2 answers
592 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....
user avatar
2 votes
0 answers
134 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 ...
user avatar
1 vote
1 answer
2k 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....
user avatar
  • 111
1 vote
1 answer
197 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 -...
user avatar
2 votes
3 answers
870 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,...
user avatar
3 votes
1 answer
347 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 %{...
user avatar
  • 135
3 votes
0 answers
77 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 ...
user avatar
1 vote
1 answer
21 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://...
user avatar
1 vote
1 answer
60 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 ...
user avatar
  • 11
0 votes
1 answer
506 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=...
user avatar
  • 233
1 vote
1 answer
47 views

Finding URLs that redirect to a given website [closed]

Is there any way to find all URLs that (permanently) redirect to a given website? E.g. example.redirect redirects to www.example.com. So I'd want a way to determine that example.redirect redirects ...
user avatar
  • 111
3 votes
1 answer
195 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 ...
user avatar
1 vote
1 answer
1k 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-...
user avatar
  • 113
2 votes
2 answers
204 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 ...
user avatar
4 votes
1 answer
55 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 ...
user avatar
3 votes
1 answer
218 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 ....
user avatar
  • 323
2 votes
1 answer
48 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 ...
user avatar
1 vote
0 answers
179 views

Use .htaccess to redirect to add .txt extension [closed]

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/...
user avatar
  • 143
2 votes
1 answer
8k 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?
user avatar
  • 21
3 votes
1 answer
372 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/...
user avatar
  • 163
1 vote
0 answers
56 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 ...
user avatar
  • 586
3 votes
1 answer
651 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 ...
user avatar
  • 131
2 votes
3 answers
58 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 ...
user avatar
1 vote
1 answer
417 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.]...
user avatar
  • 423

1
3 4
5
6 7
32