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
0answers
6 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 ...
0
votes
1answer
22 views

Apache: Redirect everything from www to non-www using https only (including HSTS)

My goal Everything results in https://mydomain.tld (non-www and with TLS) and HSTS works correct. I am using the certificates from LE (Let's Encrypt) and so I used their wizard to make my website ...
0
votes
1answer
23 views

Add a path after / to http request in HAProxxy

I am currently redirecting my users from get.foo.com to foodownload.com, and then they can click and download bar.mp4. I want before redirecting, change the path, so by entering get.foo.com, their url ...
2
votes
4answers
560 views

Is an SSL Cert needed here?

We currently have a website set to redirect to a new address (our client changed domain names, but wants the old domain to send people to the new site) in IIS 8.5 using permanant redirects found in ...
0
votes
1answer
36 views

EC2 NGINX 301 Moved Permanently

I'm managing two domains domainA.com and domainB.com on DNS Made Easy. Both domains point to the same EC2 instance. domainA had a HTTP redirection record for www.domainA.com to domainA.com, that ...
0
votes
2answers
35 views

Why rewrite(nginx) redirects with 301 code?

I have this configuration: location ~ ^/myway(.*) { rewrite ^/myway(.*)$ /anotherway$1; rewrite_log on; error_log /var/log/nginx/errors notice; } location /anotherway { ... ...
1
vote
0answers
16 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
1answer
25 views

Redirect All 404 not found links, files and directories [closed]

I have to permanently redirect around 12010 broekn urls to home page. Is there any way to redirect all 404 not found links, files and directories to home page without giving out 404 error header? I ...
1
vote
1answer
39 views

Forwarding SOAP requests

I ran into the following situation. A client provides a soap service on port 80. It's unknown how their clients access the service exactly but it assumed that they have the uris hardcoded in their ...
0
votes
1answer
15 views

Apache redirect works except for index?

I'm trying to redirect my old site to a particular url on my new site. <VirtualHost *:80> ServerAdmin info@info.com ServerName old.dev ServerAlias www.old.dev Redirect 301 / http://new.dev/old ...
3
votes
2answers
215 views

Redirect loop when forcing SSL on Nginx server

Lately I have been trying to redirect to HTTPS using Nginx but I keep getting a redirect loop after I try to visit my site in a browser. Here is my full server block config file: server { listen ...
0
votes
1answer
66 views

Redirecting my site is not working

Ubuntu 14.04 and Server version: Apache/2.4.16 (Ubuntu) The redirect rule is not working or am I missing something ? When I type in the browser, I want to use https://teampass.domain.org, but ...
1
vote
0answers
17 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 ...
0
votes
0answers
7 views

Apache Rewrite, add www and trailing slash to only Server Aliases That dont have it [duplicate]

I have a domain that has a number of domain aliases. Using Apache I would like to add 'www' to an alias that does not have a www preceding as well as add a trailing slash only when visiting the base ...
1
vote
1answer
23 views

multiple redirects on lighhttpd

I have a request to redirect multiple individual URLs to new individual URLs. This is the situation: **Old URL --> New URL** old.domain.org/ --> ...
2
votes
1answer
45 views

htaccess - redirect based on the request origin

Please help me out here. I would like to use .htaccess to redirect based on request origin, for example: User requests: http://www.domain.com/subfolder/ And should be redirected to: ...
0
votes
1answer
43 views

Nginx pass proxy example.com/test/app

I am trying to configure Nginx as a proxy to http://example.com/test/app My config is similar to this : server { listen 80; location / { proxy_pass http://example.com/test/app; ...
0
votes
0answers
58 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 ...
-2
votes
1answer
68 views

How to rewrite URL by removing the last two characters within the htaccess file?

How to rewrite a URL by removing the last two characters within the .htaccess like following? /blog/?m=20150218 rewrite to /blog/?m=201502 I have tried for following but not working: RewriteCond ...
0
votes
1answer
66 views

Unexpected Redirect in Nginx and php5-fpm

Not too experienced with web hosting, but I wanted to set up a wordpress site, but was having issues with an unexpected redirect, so I purged my entire nginx configuration, but still getting the ...
1
vote
2answers
86 views

nginx 302 redirect only naked IP

I'm trying to setup a 302 redirect if someone enters the IP address, but 301 all other requests to the www.subdomain of that domain. server { listen 198.251.86.133:80; server_name ...
-2
votes
1answer
37 views

How to redirect from one URL to another

I had a site running with url "http://domain-a.com". Now the server running that site is decommisioned and all the contents are moved to another site with url "http://domain-b.com". What I want is, ...
1
vote
2answers
147 views

Apache 2.4 restrict URL to certain IPs

I am trying to restrict a specific URL to be available outside the network only to specific IP addresses. When a user outside tries to access that URL and not from the list of IPs he should be ...
0
votes
0answers
134 views

Redirect my main domain to https using .htaccess, not sub domains

My main site needs to 301 redirect to https but I have other sites housed in that folder. They work fine as http but if I need to redirect a parked domain to that sub-site it attempts to force https. ...
0
votes
0answers
64 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 ...
3
votes
1answer
114 views

Cannot renew Public IP address SSL certificate. Any alternatives?

From what I've read and researched (here, other places) I'm almost certain what I'm asking will not be possible but any alternative suggestions are welcome. I have a server with a Public IP address ...
0
votes
1answer
54 views

301 Redirect for a dynamic URL [duplicate]

I've been working on a 301 redirect for a dynamic URL for the past couple days and have really been struggling. I am looking to redirect example.com/?feed=podcast to example.com/feed/podcast ...
0
votes
1answer
65 views

nginx reverse proxy hide login query also on 301 redirect or full qualified url

I am spending now over two days on that issue, trying several servers (apache, now nginx), searching the whole web, but had no luck so far. First: sorry for posting my urls with http-s instead of ...
0
votes
1answer
63 views

IIS HTTPS forward only works after full OS reboot

I'm managing a web app on windows server 2012R2 (iis 8.5). I have default.aspx page that redirects to a different app, and also redirects http to https. inetpub\wwwroot\default.aspx <%@ Page ...
1
vote
1answer
149 views

Nginx: reverse proxy and http to https redirect

I currently use a reverse proxy to map my.domain.com to a port 5000, but would like to also redirect http traffic to https. I don't want to add SSL cert info, as that's all handled by Cloudflare. ...
0
votes
0answers
75 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
1answer
288 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
276 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
16 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
95 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
113 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
37 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
244 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 ...
5
votes
3answers
695 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 ...
3
votes
2answers
65 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
50 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 -> ...
1
vote
1answer
1k 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
114 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
39 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
27 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
491 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
25 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
151 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
37 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
112 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; ...