Stack Exchange Network

Stack Exchange network consists of 175 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 [301-redirect]

The HTTP response status code 301 Moved Permanently is used for permanent redirection. This status code should be used with the location header.

3
votes
0answers
50 views

301 Redirect to other domain of selected deep pages only?

would appreciate help on this i am trying to 301 selected deep pages only from one domain to deep pages on another domain. I do not wish to 301 the entire site. My questions are a) is this possible ...
3
votes
0answers
60 views

Redirect user to an arbitrary application protocol (used by Android app)

I have an Android application that declares an intent using a in-house protocol. You can launch it by opening a webpage that contains a link to : myapplication://foo-bar I want to an URL on my ...
3
votes
0answers
553 views

nginx redirects requests from apache proxy to real server address

Description: [server 1] <-|-> [server 2] [Apache] <-|-> [nginx <--> gunicorn <--> django] Apache is running on a server 1 which silently redirects just one subdomain to ...
2
votes
0answers
523 views

.htaccess Redirect 301 loop

I'm having an issue implementing 301 Redirects via .htaccess file on an Apache server. I can enable the 'Redirect 301' statements in the .htaccess file and they will appear to work for a few minutes, ...
2
votes
0answers
528 views

Why are 301 redirects intermittently slow or time out in IIS 6?

I'm no IIS wiz, but I can provide any additional info that might be helpful. My site uses a 301 redirect to send requests for mysite.com to www.mysite.com. They are two separate sites in IIS. Most of ...
1
vote
0answers
104 views

Removing nginx server_name results in too many redirects

I'm trying to test out a new website before replacing the original one, since I don't want to impact users. I have an existing website at say example.com and am working on a separate WordPress site ...
1
vote
0answers
94 views

301 redirect on IIS with optional query string

I have a working 301 redirect setup for languages that looks like this: <rule name="mygreatrule" stopProcessing="true"> <match url="^productname" /> <conditions logicalGrouping=...
1
vote
0answers
106 views

Is there a way i can track which IIS server redirects are being used

Our web.config file has 1300 redirects in it and growing all the time. Its a mixture of 4 site rebuilds over 15 years and marketing vanity URLS. My question is 3 part. does having to search through ...
1
vote
0answers
26 views

Apache settings to prevent browser from redirect

I have a question regarding redirects. We currently have set up an Apache with a wildcard certificate *.shopdomain.com and run different shops on different subdomains like shop-a.shopdomain.com, shop-...
1
vote
0answers
348 views

Windows web config redirect, different folder name and domain

I have 2 websites and a few thousands links with the same pattern that need to be redirected. I want to achieve this by writing the code one time and for it to work for all of the URLs. This is the ...
1
vote
0answers
51 views

How to 301 redirect piece by piece?

I will move my blog website (monthly traffic of 250k) to a new domain name. I will use HTTP 301 redirections. But I should not redirect all links at the same time because of some business reasons. I ...
1
vote
0answers
178 views

IIS URL Rewrite or Load Balancer for 301 Redirects?

We have a system in place with access to the IIS URL Rewrite Feature. However, I am investigating whether we should do our 301 Redirects using it, on IIS, or do them at the Load Balancer stage instead?...
1
vote
0answers
610 views

ELB, Nginx and redirecting http to https - 408 requests timeout

I have this configuration: The Amazon Elastic Load Balancer (ELB) routes port 80 to port 81 and port 443 to port 80 The cert is handled in ELB Nginx listens to port 80 and 81 Port 81 redirects to ...
1
vote
0answers
498 views

HTTP/1.1 301 Moved Permanently from the IIS for two minutes

The IIS for two minutes was redirecting from www.exaple.com to www.example.com. Nobody fixed it - it was a temporary fault. There is URL Rewrite 2.0 installed which has one rule which was not ...
1
vote
0answers
538 views

apache2 misconfiguration, appends infinite /index.html/ to url

I use the bash under Windows 10 with apache2 and php7 installed. I set up a vhost for http://localhost mapped to a symbolic file which is linked to a physical windows directory. When I open the url, ...
1
vote
0answers
293 views

redirect subdomain of old domain to directory in new domain

I would like to redirect a subdomain of an old domain to a directory on a new domain. e.g. forum.old-domain.com should redirect to new-domain.com/forum The redirection from old-domain.com to www.new-...
1
vote
0answers
818 views

old URLs to new URLs using nginx

I need to: replace old SEO unfriendly URLs with new SEO friendly URLs e.g. replace http://../products/?type=genre.main.key&key=DAN&title=Dance&page=1 with http://../genres/dance?key=...
1
vote
0answers
24 views

301 redirect to new domain - old address still generates traffic in analytics

I've redirected my page (both www and non-www) to a new address, using a .htaccess 301 redirect. But, I still see some move on the old addresses in Google Analytics. What can it be caused by?
1
vote
0answers
31 views

sending back rewrote url without forcing a new request

The user of my application issue commands (create new post, delete comment etc.) via links with nonce parameter. As this is transported via GET the URL bar contains this technical detail. I want to ...
1
vote
0answers
932 views

Nginx proxy_pass and redirect

I tried to clean up my urls on my reverse proxy nginx config. My config looks like this upstream blog { ip:port; } server { listen 80; server_name domain.tdl www.domain....
1
vote
0answers
93 views

Hyphen character encoded as “%2D” with IIS6

A customer has set up a website on a server IIS6. In older versions of Firefox, they have a problem with a URL containing a hyphen character. When they request http://www.example.es/mas-info they ...
1
vote
0answers
30 views

Confirming code for redirect main domain but not the sub-domain

We first had (22 years ago) the domain silver-cross.com and a few years later acquired silvercross.com Currently, silver-cross.com and silvercross.com are both using the same index file & we would ...
1
vote
0answers
270 views

Simple 301 RedirectMatch with URL input variables not working

I have this line in my .htaccess and the 301 redirect is not working. It just doesn't redirect. Can anybody see anything wrong with this? Keep in mind, I have 7 other RedirectMatch strings in my ....
1
vote
0answers
284 views

301 redirects along with URL rewriting to reduce URLs with query params

Okay, so I have URL rewriting set up on my server (IIS 7) so that, for example, http://example.org/p/1234/ is really http://example.org/product/?product_id=1234 (With /product/ containing an index ...
1
vote
0answers
683 views

301 redirection with Squid based on URL (is Squirm the fastest way?)

I am using Squid 2.6 as a reverse proxy. I am receiving all the traffic from several domain names (.com .org etc.) but the website is always the same. I would like to have only one domain (specially ...
0
votes
0answers
34 views

nginx won't listen on non-standard port

My organization has a server that is just for handling redirects of retired sites (redirects-myorg.org). We've just retired a website (widgets.org), and I am adding the retired site to our redirects ...
0
votes
0answers
16 views

Different redirects for a subdirectory and second level subdirectories in nginx

I am not really experienced in nginx configuration but have a very specific problem. Our website has a blog on a subdomain - blog.example.com and we want example.com/blog to redirect to this subdomain....
0
votes
0answers
17 views

301 redirect configuration in apache2

I have an apache2 running on an Odroid XU4, and I've managed to configure port redirects, Dynamic DNS and HTTPS using LetsEncrypt. Right now I'm using a DDNS domain from a free service (xxx.ddnss.de),...
0
votes
0answers
70 views

Nginx redirect multiple query string urls

I want to redirect some URL to another folder on the same website. Each URL have query string so simple 301 return is not working. Example of redirect I want. example.com/th/?n=abc 301 to example....
0
votes
0answers
89 views

URL redirection and ACL conditions in Haproxy

I would like to check and compare the maxconn and conn_cur in haproxy. If the conn_cur value greater than maxconn, the url needs to be redirected. URL redirection is working, but the maxconn & ...
0
votes
0answers
152 views

Nginx Redirect Loop in a Letsencrypt Docker with Multiple Sites

I am getting a "too many redirect error" when I try to go to my own websites. Those websites are hosted on my server with Nginx inside a Letsencrypt Docker(Docker Hub: https://hub.docker.com/r/...
0
votes
0answers
24 views

Apache HSTS with non-www to www 301 redirect

Just been setting up HSTS on an Apache vHost (it is a virtualmin box) and have that working, however I am experiencing strange behavior when trying to force a call to https www rather than it ...
0
votes
0answers
79 views

Linode Longview Apache https Redirect

I have setup Linodes longview (which is used to view your servers information from the linode dashboard). All is working apart from the Apache tab, which gives the following error: Unable to access ...
0
votes
0answers
60 views

map setting is not working for redirect in nginx

I have redirect-map.map file which has some url to redirect as below but redirect setting is not working: /jewelry/test/costumes(.*)a1 https://test.com/jewelry/test/costumes.html; /jewelry/test/...
0
votes
0answers
381 views

Can't redirect http:// to https:// via nginx

Good day everybody, I have set up an Nginx Webserver on an Ubuntu instance. I have configured the /etc/nginx/sites-enabled/default file like this: server { listen 80; ...
0
votes
0answers
256 views

NGINX redirect results in “DisallowedHost at /”

I have installed nginx on a CentOS 7 box at Azure, and I have configured it like this: server { listen 80; server_name mywhateverdomain.com; return 301 www.mywhateverdomain.com.br$...
0
votes
0answers
445 views

Https URL without slash is redirected to http version with DirectorySlash On

We have a VM running with our hosting provider where the following issue occurs... When accessing https://www.app.com/folder-on-filesystem Apache sends a redirect (301) to the URL with a trailing ...
0
votes
0answers
420 views

NGINX redirect accesses by IP to access by domain name dont work

Every time instead domain browser in address line display ip address of server. Please let me know how can I redirect it to my domain? I have following setting, but dont work. upstream app { ...
0
votes
0answers
426 views

Use RegEx to redirect all of website EXCEPT one URL

I've been directed here by support at WPengine, but I'm not sure whether this question should be asked here or over on Overflow... I'm using RegEx to redirect all paths and pages of a sub-domain to ...
0
votes
0answers
271 views

301 redirect entire domain to a single page .HTACCESS

First try: Chated for over 3 hours with an representative of one.com. Best advice they could gave me: do a metarefresh. Bummer. Second try: Options +FollowSymLinks RewriteEngine on RewriteRule (...
0
votes
0answers
196 views

redirect time too high! from non-www domain to www.domain

I have setup canonical redirects in my nginx config file, however it takes 7sec to redirect mydomain.com to www.mydomain.com (from firebug) this is my chunk of config: server_name example.com rewrite ...
0
votes
0answers
685 views

Nginx - Muliple redirects using map

I need to redirect some urls permanently on the same domain. I'm trying to use map directive. I followed some asnwers to similar questions, but they don't work. Here is my setup. website.conf map $...
0
votes
0answers
204 views

Does domain pointer overrule .htaccess redirect from country tld to .eu tld or is there workaround?

I've been trying to redirect with a .htaccess file but its not working. Now I think I know why, just need a second opinion. I have domain pointers set from a .nl domain and a .lv domain to point to ...
0
votes
0answers
26 views

Why am I serving up SimplyClassicRemodeling.com instead of redirecting to CJSHayward.com?

I have a client website where the client requested that a website be removed as it details where his business was years back, not where it's moving now. I tried to broach the concept of an update, but ...
0
votes
0answers
325 views

Nginx redirects http request to one vhost

I have installed nginx with php-fpm. When I try to access example.org it redirects me to https://example.com What's wrong with my configs? nginx.conf user www; worker_processes 1; ...
0
votes
0answers
111 views

How do I 301 redirect - for all urls of my website to one single page

I have a website: www.example.pro with pages like: www.example.pro/contact-us/ and www.example.pro/about/ I want every URL from this website to redirect to: www.example.com Example: when opening ...
0
votes
0answers
1k views

nginx: Redirect all requests to a proxy, but not these three specific URLs

nginx can be tricky sometimes: I want to redirect all incoming requests for www.sub.domain.com/* to www.other.domain.com/* use a proxy so users still see the original www.sub.domain.com when ...
0
votes
0answers
151 views

google webmaster soft 404 on 301

I'm looking through google webmaster that my page is generating soft 404 errors (https://support.google.com/webmasters/answer/181708?hl=en) google says: We recommend that you always return a 404 (Not ...
0
votes
0answers
2k views

Varnish redirect loop

I've tried with a lot of varnish configurations and always experience the same redirect loop, after varnish is running for a couple of hours some pages are displaying the message: The page isn't ...
-2
votes
0answers
12 views

Redirecting https domain to separate https domain

If you have an old website with the url https://example.com on one server. A new website is built on a separate server with a new domain pointing to it https://newexample.com how can you redirect the ...