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

learn more… | top users | synonyms (1)

0
votes
1answer
40 views

HA-Proxy 301 re-direct: https to https://www

I am trying to have HA-Proxy 301 redirect an https domain. I need: https://example.com to redirect to https://www.example.com This is what I was trying to get it to work: # corp - example.com ...
0
votes
1answer
27 views

APACHE - Redirect domain to subfolder to VirtualHost

i need redirect to a subfolder, when i go to domain.com, redirect to domain.com/foo. In this time i have a simply apache configuration with Alias /foo /var/www/foo. I suppose need create a VirtualHost ...
0
votes
0answers
13 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
18 views

Apache redirection to domain (both Http and https)

I'm trying to redirect some urls in http and https to a new subdomain. For example: http://myurl.com/one/two/three -> http://newsubdomain.myurl.com/one/two/three https://myurl.com/one/two/three ...
1
vote
1answer
20 views

Why is AWS S3 Redirect Showing as 302 instead of 301?

I'm implementing a 301 redirect in S3 using this blog post from when the functionality was first announced. It explicitly says the redirect will be a 301, which is what I want. Screenshot of the ...
0
votes
0answers
20 views

fix nginx forwarding slashes and get params

(Cross posted from stackoverflow...) I keep getting a strange issue on nginx right now. I have two nginx servers, one hosting content that I want to forward to the other server. The one that is doing ...
0
votes
0answers
53 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 ...
4
votes
3answers
608 views

View the SSL certificate of a page that immediately redirects to another

So I've googled quite a bit for this but it appears that my google-fu fails me - apologies if this is a trivial and already answered question, I could not find anything about this I'm trying to ...
1
vote
1answer
44 views

Redirect to https:// with www apache2

I am redirecting all http:// request to https:// using apache2 host .conf file like this. <VirtualHost *:80> ServerName example.com ServerAlias www.example.com Redirect / ...
0
votes
2answers
39 views

Redirect wildcard subdomains

I'm new to nginx and just looking for some advice/help. I've got two domains, the original domain oldsite.com and the new domain newsite.com. I'd like to setup a 301 redirect from *.oldsite.com -> ...
0
votes
1answer
86 views

http to https including www 301 redirect [duplicate]

I currently have our Magento website to redirect http to https. Basically the site should only be accessed through https including the www. I think it is working however, it currently shows as a 302 ...
-3
votes
2answers
54 views

block or log IPs that direct access my website (ubuntu , nginx)

The website is under DDOS, the cloud service is doing a pretty good job for a cost of dozen bugs a month. We are happy! However the attackers have been hitting our site with IP. Currently, we 301 ...
1
vote
0answers
20 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
25 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 ...
0
votes
3answers
141 views

Nginx 301 redirect https to http

I have a strange issue with a trailing / I'm using nginx and it is functioning correctly with one small exception. I have the following site config server { listen 80; return ...
1
vote
1answer
22 views

Redirection with subdirectories urls in Nginx

When with my browser, I do a call to http://myhost/tiles/yellow/1/2/3.png, I would expect to get content from http://myhost/cache/yellow.png My configuration is the following location /cache/ { ...
1
vote
2answers
75 views

Apache httpd does not implement updates to a 301 redirect configuration

I'm having a problem updating a previously-working redirect in my apache server (httpd, rhel). I'd previously had: RedirectMatch 301 ^/apidocs/ /old/specific/path/apidocs/ which worked. I changed ...
-2
votes
1answer
26 views

How to redirect between Wordpress site using .htaccess if the origin has .html [closed]

How to redirect between Wordpress site using .htaccess if the origin has .html the first site i use permalink .html example: www.domain.com/articles/content.html if i'd like to use 301 redirect to ...
0
votes
0answers
67 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; ...
-2
votes
2answers
50 views

Is Apache RedirectMatch a good solution for these urls [closed]

I have a Rails app which is throwing exceptions when I get some strange urls with lots of garbage characters. For example ...
-1
votes
1answer
68 views

Trying to get nginx to return 301, preserving $_GET

I'm having trouble configuring nginx to return the url I want. I'd like http://domain.com/blah?abc=e9800ecf8 to return http://domain.com/createpage.php?abc=e9800ecf8, i.e. it preserves the abc ...
0
votes
1answer
84 views

Nginx redirects not getting used

I have an nginx.conf file that looks something like this: http { server { listen 80; server_name myapp.org; return 301 http://www.myapp.org$request_uri; } server { ...
1
vote
1answer
67 views

Lighttpd redirect non-www to www

I want to redirect all non-www to www on my domain. But when I use this code provided by some websites, and do a graceful restart of the lighttpd server, my website doesn't function anymore - at ...
0
votes
0answers
91 views

Redirect the direct links to static files from non-www to www

My website is using WordPress 4.1.1, multisite, subdomain install. I've changed it from non-www to www successfully after updating the database ( ...
0
votes
1answer
187 views

firefox vs chrome behave different 301 redirect

I have this nginx config: worker_processes 1; error_log /home/paolino/error.log notice; events {worker_connections 1024;} http { include mime.types; default_type ...
-1
votes
1answer
37 views

New domain and HTTPS redirects [duplicate]

I have a domain.co and just bought domain.com and want to use SSL on it. Having in mind this H5BP apache config for HTTP to HTTPS redirect: <IfModule mod_rewrite.c> RewriteEngine On ...
1
vote
1answer
121 views

Why is https://www.foobar.com redirecting to itself?

I don't have any rules that suggest https://www.foobar.com should redirect to https://www.foobar.com. But why is it doing that? This is my curl output: curl -Ik https://www.foobar.com HTTP/1.1 301 ...
4
votes
1answer
404 views

Apache Redirect Permanent Not Working

I have two redirects on my site. One of them is working, and one of them is not. Here are the relevant lines from my configuration, edited to protect the innocent. <VirtualHost *:80> ServerName ...
0
votes
0answers
38 views

Combining a 301 and aliases in Apache VirtualHost blocks

I manage (just about) Apache and VirtualHosts for the server and am trying to determine the most efficient and SEO-friendly method for a client with: an old domain/dirs/ that needs a 301 to a new ...
0
votes
0answers
433 views

IIS 8 Win 2012 R2 - Rewrite redirect not working, page not found, address not changing

I have an MVC4 app and trying to rediret pages so that both http://example.com/about and https://example.com/about direct to https://example.com/about (where about could be any other page also). I ...
1
vote
1answer
1k views

Getting “Too many redirects” error with nginx rewrite rule

I am trying to rewrite the domain url that targets my site such that all domain names are rewritten to www.example.com and have the following config: mysite block server { listen ...
1
vote
1answer
638 views

Nginx Server Blocks: https, non-www, & non-ssl subdomain

Here's my scenario: Two sites: https://example.com http://dev.example.com Site 1 has a ssl certificate. Site two does not. (In other words, I don't have a wildcard ssl certificate.) With ...
1
vote
1answer
532 views

nginx redirect loop with proxy_pass and $http + CloudFlare

My nginx configuration works great until I add a redirect that forces HTTPS. The working config before the redirect is is: server { listen 80; listen 443 default_server ssl; server_name ...
1
vote
2answers
274 views

Can I make Apache ErrorDocument return 404 instead of 301?

In my .htaccess I have ErrorDocument 404 http://foo.com/404.html It works, in the sense that I recover from any file not found error and show the 404 page instead, but the way it works is to ...
1
vote
1answer
65 views

nginx 301 redirects not working as expected

I have added the following rules to my nginx.conf file rewrite ^/top100/Armin%20van%20Buuren/(.*)$ http://www.example.com/armin-van-buuren/$1 redirect; rewrite ^/top100/armin-van-buuren/(.*)$ ...
0
votes
0answers
67 views

Enable charset header in nginx 301

I have nginx redirecting http requests to https. Currently the header in the redirect is Content-Type: text/html. I want it to be Content-Type: text/html;charset=utf-8. Here it says I need a custom ...
0
votes
0answers
231 views

[SOLVED]IIS7 HTTP Redirect not working correctly for my use

quick overview of our network. One WAN IP, two win 2k8 web servers. Initially one was for our public sites, the other was for our internal sites. Using a router as a firewall / NAT device. We now ...
0
votes
1answer
103 views

Domino SSL 301 redirect with www and non www

With reference to this question How to do a 301 redirect from http to https in a domino server? My redirects are failing. (gaps between protocol and : are because i dont have the rep to post multiple ...
0
votes
1answer
358 views

nginx: Multiple cross-domain 301 redirects with different page addresses

I'm moving my old site over to a new domain, and with that new domain comes new naming conventions. I'm trying to figure out what would be the simplest way of accomplishing the following for roughly 8 ...
0
votes
1answer
37 views

How to use parts of the old URL in a 301 redirect [duplicate]

is it possible to keep certain parts of an URL and to rewrite the rest? With a .htaccess 301 redirect. In my example I would like to rewrite URLs from this format http://blog.example.com/post-name ...
0
votes
0answers
88 views

Redirect an old existing opencms url to new joomla url

I am currently working on redirecting the old url of one of our opencms site to the new url which is in the joomla platform. I've been trying for some time now but I can't seem to get it. I have tried ...
2
votes
1answer
760 views

302 redirect loop with nginx and Wordpress

I've been searching a couple of hours in Serverfault trying to solve this problem but I can not find a solution. What happens is: I am having a 302 redirect loop using wget in my site, but not using ...
0
votes
0answers
45 views

Permanent redirect from machine behind load-balancer

I suppose you've seen questions about Google indexing both the domain name and IP address of a site. I have a similar problem, except there's a load-balancer in between, and I have no access to this ...
0
votes
0answers
66 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
1answer
57 views

Control redirect from a html file and not in Nginx configs

I've got a case where I need to setup a nginx server that only will serve sites (about 800) with static content. Many of the sites will initially have no real content themselves and should just be ...
0
votes
2answers
75 views

IBM Domino and variables X-Forwarded-Proto-F5 [duplicate]

Domino server receive requests with variable in header [X-Forwarded-Proto-F5]. I would like to do some tricks depends of value there (either redirect requests or not). Is it possible to do redirects ...
0
votes
0answers
69 views

.htcaccess RewriteRule without 301/302 error

I added the following Redirect-Rule to my .htaccess-file for my entire website: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] Basically it redirects URLs ...
0
votes
2answers
459 views

Redirect loop when forcing SSL with Nginx

I know this question has been asked and answered a million times, but none of the accepted answers are working for me. My site is unreachable due to some sort of infinite redirect loop when I force ...
0
votes
0answers
60 views

Directive of Apache - Forbidden error and redirect

I have a problem with Apache and Directory. I only want to see my site in www folder, phpmyadmin (with authorized login) and redirect from IP my VPS to doman.com. In ...
0
votes
3answers
885 views

Nginx: Redirect both http and https root to subdirectory

I'm attempting to redirect the root domain for both http and https in nginx to the same subdirectory (https): So e.g. http://example.com -> https://example.com/subdirectory https://example.com ...