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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
2answers
37 views

Unable to remove 301 redirect for wordpress wp-admin on nginx

Unable to remove 301 redirect for wordpress wp-admin on nginx. The homepage seems fine I’ve tried almost everything Disabling plugins by renaming the plugin directory Removing the ...
1
vote
1answer
39 views

.htaccess 301 redirect remove [] from the URL

I want to remove '[' and ']' from the URLs and redirect to correct link. Here is a sample URL: /forums/garage-150/cool-cars-sightings-[archived]-7610/index127.html Needs to be redirected to: /...
1
vote
1answer
61 views

Apache Redirect to /index.php - How to handle direct requests for /index.php

I'm not 100% sure if this should be on server fault or stack overflow, though I'm leaning towards server fault. Most PHP frameworks utilize Apache redirects to funnel all request to /index.php and ...
0
votes
1answer
16 views

How to redirect all requests except when there's an exact string match

Requirement- I want to redirect all requests that end with /abcd to /products/abcd This should match all urls such as these- /collection/abcd /collections/all/abcd /hello/world/abcd This is what i'...
0
votes
1answer
42 views

Apache: Is the password protection in a .htaccess file always processed first?

Last week I did a relaunch on a website and today I have realized that the staging subdomain got indexed by Google. I want to avoid this mistake in the future and track down the error source. I ...
1
vote
0answers
7 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=...
0
votes
2answers
80 views

How to certify a domain that's used only for redirections and has no hosting?

I migrated a site from oldsite.example to newsite.example. HTTPS was enforced all over, so most incoming links to oldsite are going to https://www.oldsite.example. My oldsite.example domain used to ...
0
votes
1answer
26 views

NGINX configuration for creating a shortlink service from existing shortlink web service

I have an existing shortlink service with long domain name longname.com/Wsdfsdf . When the visitor clicks this link it redirects to longname.com/order-details/customer-id/3435345345435 Now I have a ...
0
votes
0answers
23 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
2answers
53 views

Redirect root to www nginx on HTTPS

Here is the current status: http://example.com to https://www.example.com works http://www.example.com to https://www.example.com works https://example.com to https://www.example.com DOESN'T redirect ...
1
vote
1answer
42 views

Redirect with query stings

I have a very annoying redirect I cannot figure out. I have many hundreds of page like the below: example.com/directory/in.php?url_id=28930 I want to redirect all e.g. /directory/in.php?url_id=...
0
votes
1answer
38 views

How can I bootstrap certbot on a hard-redirecting https domain?

I have a working Nginx config that: Performs a hard-redirect (301) from http to https Additionally, ignores subpaths on http (http://www.example.com/ANY/THING redirects to plain https://example.com) ...
-2
votes
1answer
78 views

Redirect my https://123.456.567.789 to https://example.com || Nginx [closed]

I want to create redirection rule for my site, i want to redirect my site from ip to domain, but its working fine in non-https , but when i type https://id-address it opens as it is, no redirection. ...
0
votes
1answer
38 views

Trying to forward an HTTPS URL to another

The domain ultimateedgeapparel.com is registered on GoDaddy and I've setup a 301 redirect through GoDaddy's forwarding service to this page - https://www.allvolleyball.com/ultimate-edge which works. ...
0
votes
1answer
70 views

Nginx server redirect loop after SSL

So i've had some problems getting SSL to work on my Nginx server. After some time trying and following tutorials i've finally got it to work. Then when i wanted to access the hipchat server i got ...
1
vote
2answers
92 views

apache2 mod_rewrite redirect without http body [duplicate]

I am currently using Apache mod_rewrite to redirect to HTTPS, but I would like to remove the body from the response. How it is currently: Example: How I would like it to be My redirect ...
-1
votes
1answer
442 views

Apache Rewrite redirect all pages except for specific [duplicate]

I am retiring a site and would like to display a message when anyone tries to access any page on the site EXCEPT for a couple of pages. Some pages have certain pageid parameters. So basically ...
0
votes
0answers
31 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/...
1
vote
0answers
51 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 ...
0
votes
1answer
216 views

Nginx 301 domain redirect not working

I am trying to redirect (or I guess forward) my old domain (example.com) to my new domain (example2.com) now that I have updated my server config to accommodate the new domain. However, it doesn't ...
0
votes
0answers
10 views

Redirection htaccess code headache

Can anyone help me figure this out? I want to re-direct my example.com & example.com/index.html & http://www.example.com to https://www.example.com I tried this code but I think it's re-...
1
vote
0answers
19 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
2answers
505 views

How to redirect specific pages in htaccess, and all other redirect to the homepage?

How do I 301 specific pages to a new domain URI, and then all the rest of the pages, just send to the homepage? Example -- Specific pages I want to move -- Redirect 301 /contact.htm https://...
0
votes
1answer
56 views

Google Compute resize gives: HTTP/1.0 301 Moved Permanently

I recently installed a Wordpress instance on Google's Compute Engine with Google's own one-click install button. It doesn't let you configure the server or OS so I just took what Google offered (...
3
votes
1answer
43 views

Apache htaccess redirect?

I have a client who has a domain like this-site.com and also thissite.com Without going into the entire issue behind it, we need to redirect any incoming request to any *.this-site.com to the matching ...
1
vote
1answer
205 views

nginx and redirection from another domain

So I have www.old-domain.com and we've just transferred to www.new-domain.com old-domain.com's server had an SSL certificate and could handle both http://www.old-domain.com and https://old-domain.com ...
1
vote
1answer
739 views

.htaccess redirect all domains, with paths, to one

I have three domains all pointing to the same hosting space, mirrored using A records: example.org example.org.uk example.co.uk I have a website on the root (/), and a MediaWiki installation at ...
3
votes
2answers
5k views

Best way to redirect all HTTP to HTTPS in IIS

We want ALL sites on our webserver (IIS 10) to enforce SSL (ie redirect HTTP to HTTPS). We are currently 'Requiring SSL' on each site and setting up a 403 error handler to perform a 302 redirect to ...
1
vote
0answers
238 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 ...
-2
votes
1answer
118 views

how to redirect old html url to new php Url [duplicate]

How to redirect old html page to new php page. I used this code but it redirecting with full file path. I'm using below code. RewriteEngine On RewriteRule ^(.*).html$ $1.php
0
votes
1answer
218 views

NGINX 301 list of redirects SEO

I have about 250 URLS that need to be redirected from an old site to new. In the server block I set this statement: include /etc/nginx/301s/somesite.conf; Then in the included file I have a list of ...
0
votes
1answer
92 views

Unwanted 301 Redirect for new VirtualHost for subdomain

For the last 3 years I've had 2 copies of my Wordpress website. One at www.domain.com and one at dev.domain.com. I'm trying to add a third today. Seems simple enough! I go through all the simple setup ...
0
votes
1answer
796 views

Redirect naked domain to www with SSL in cloudfront/route 53

I have setup two buckets on s3 one for my actual angular 2 app: www.example.com and one for redirecting example.com to www.example.com. I have also created two distributions in cloud front and added a ...
1
vote
1answer
696 views

CNAME redirect to external https url

I have a somehow specific setup. It really is due to some restrictions I cannot work around: There are domains 1. and 2. which I own and an external URL which I don't own: start.com root.com http://...
1
vote
0answers
41 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
2answers
427 views

NGINX - return 301 keeps redirecting to HTTP instead of HTTPS

I have the following configuration: server{ ssl on; listen 443 ssl; ... location = / { return 301 https://$host/appName; } location = /appName { ... proxy_pass $...
0
votes
0answers
27 views

IIS redirect to HTTPS folder

I am trying to figure out redirection on IIS. I have a website that should be viewed under https://foo.bar.com/Web The HTTP to HTTPS redirection part is easy but entering https://foo.bar.com/ shows ...
0
votes
1answer
71 views

dual behaviour on passing referrer between http and https with 301 redirects

We have a client that is using https but has two 301 redirects, first redirect from https to http, and second from http to https. One of his referrers is sending from https referrer to https but the ...
1
vote
1answer
649 views

nginx won't redirect http to https

I have a nginx docker running, with multiple site-config files. One of those is just a general redirect for all http connnections to https: server { listen 80; server_name *.example.com example.com; ...
0
votes
1answer
170 views

IPTables Forwarding Port 8080 to 80

My hardware firewall has port 8080 open My goal is to have my server receive the requests over 8080 and via iptables route the request to be handled by httpd. This seems simple (in my head), but I ...
0
votes
1answer
49 views

Leverage 301 HTTP code for email address migration

Is it possible to leverage HTTP 301 Moved Permanently for email address migrations to ask the sender to sender the further messages to another email address? UPDATE I'm aware of differences between ...
0
votes
0answers
153 views

Trouble redirecting https://example.com to https://www.example.com on an nginx server

I'm pretty to new to this and hence I request you to bare with me on this one. And trust me, I wouldn't generally post questions until I've truly spent hours and hours on a problem without having any ...
1
vote
1answer
76 views

How to check is canonicalized domains are being used? Apache 301 redirect does not preserve referrer

I have multiple domains which are setup to redirect (301) to my main domain. However I know some of these domains have little to no value in terms of SEO and I would like to get rid of them. But a ...
0
votes
0answers
26 views

How do I modify the source URL using appcmd httpRedirect in IIS?

We recently migrated a Web application (IIS, Windows Server 2012 R2) residing on another application server which has the following naming scheme. https://servername/appname/#/displayName/rndNumber/...
1
vote
1answer
97 views

Prepend “player-” before numeric URLs with the help of HAProxy 1.5

I run a web game embedded in Wordpress/Jetty behind HAProxy 1.5 on CentOS 7 Linux. The website can be accessed both as http and https. I have modified Wordpress to display player profile pages at ...
0
votes
0answers
130 views

haproxy multiple frontends using different bind options

I have a webserver which is using normal ssl for general but on a certain url I need client certificate based authentication. As far as I understand that can be achieved only with two different ...
0
votes
0answers
208 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
1answer
269 views

Redirecting from www to no www in nginx reverse proxy

I'm developing a Django app with nginx reverse proxy and gunicorn application server. Being a newbie web developer, I need help with redirecting www traffic to no www at the webserver level. I'm ...
-1
votes
1answer
1k views

NGINX redirect if user agent contains XYZ

I have redirected my site from http to https. I want to allow the useragent XYZ and XYZ whatever to enter both http and https versions. Now the vhost looks like this: server { listen 80; ...
-1
votes
1answer
979 views

Redirect non-www to www over SSL in apache not working

My virtual host file: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com #Redirect non-https or non-www to https://www... RewriteEngine On #NOT TESTING HTTPS REDIRECTION FOR ...