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
308 views

How to use # in url as a redirect rule in htaccess for apache

I am having a difficult time figuring out how to have the following work: I am trying to redirect a url in htaccess I am trying to redirect from example.com/test.html to example.com/index#test I ...
2
votes
1answer
3k views

nginx return 301 / redirect

among all 'redirect in nginx' questions I couldnt find how to redirect (using return 301 and beteer no ifs) using regexps. I have a link to my website and I'd like to remove parameter a the end: ...
0
votes
1answer
16 views

301 or 302 redirect for site which will have no content for a year?

I have a domain which will not have any actual content for a year or maybe more, and I want to redirect for the time being. Should I opt for a 301 or 302 redirect? The site is for an academic research ...
0
votes
1answer
25 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
2answers
279 views

Unexpected behavior with htaccess Redirect 301

I have the following in my .htaccess file- Redirect 301 / http://www.foo.com/south-carolina-real-estate/ Redirect 301 ...
0
votes
0answers
7 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
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
1answer
3k views

301 redirect Rule For Load Balance F5 BigIp

I have a load balancer F5 Big ip for my website. Currently, I am having 302 redirect in place; however, I wanted to apply 301 but dont know how. For example: My website (abc.com) when typed 302 ...
2
votes
4answers
564 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 ...
1
vote
1answer
1k 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 2 does not. (In other words, I don't have a wildcard ssl certificate.) Via ...
0
votes
1answer
37 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
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
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
41 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
66 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 / ...
2
votes
2answers
10k views

How to redirect example.com from HTTPS to HTTP, then HTTP example.com to newdomain.com?

As of now I use this rule (in .htaccess of example.com) to redirect HTTPS/HTTP example.com to newdomain.com: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.com/$1 ...
3
votes
2answers
232 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 ...
4
votes
3answers
2k views

How to redirect https://domain.com to https://www.domain.com using IIS?

I have a 301 set up which redirects http://domain.com to http://www.domain.com (http://www.domain.com$S$Q) but if I browse to https://domain.com I get an SSL error (as it expects www.domain.com). Is ...
0
votes
1answer
67 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
51 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
4answers
782 views

point multiple domain to single web hosting account

point multiple domain to single web hosting account using htaccess i have used the following .htaccess file in my public_html directory RewriteEngine on RewriteCond %{HTTP_HOST} ^site1.org$ [OR] ...
0
votes
1answer
44 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
75 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
67 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
88 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 ...
28
votes
3answers
45k views

Nginx reverse proxy + URL rewrite

Nginx is running on port 80, and I'm using it to reverse proxy URLs with path /foo to port 3200 this way: location /foo { proxy_pass http://localhost:3200; ...
1
vote
2answers
163 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 ...
-2
votes
1answer
38 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, ...
0
votes
0answers
138 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
66 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
116 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
68 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
55 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
64 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
151 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
76 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 ...
3
votes
5answers
6k views

Restrict direct IP access to website

I want to restrict direct IP access to my website. I found several solutions involving .htaccess but none work. I've also found one solution via apache virtual hosts config which was working fine up ...
0
votes
1answer
311 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
282 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
119 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
249 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 ...