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)

2
votes
1answer
90 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: http://www....
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: ...
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 ...
1
vote
1answer
27 views

301 redirect custom link

I have few thousands link like this /Gallery?cmd=viewCarGallery&carID=3747&pgID=1 Now I want to redirect them using .htaccess to another site to others link. Every will link will be ...
1
vote
1answer
26 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/ --> ...
1
vote
1answer
191 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 ...
1
vote
1answer
26 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
1answer
223 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 ...
1
vote
1answer
830 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 my-...
1
vote
1answer
286 views

Nginx + Wordpress: Redirect URLs after moving to Wordpress

I have a classified ads website using a proprietary script and now I am moving it to Wordpress. I want to redirect the old URLs to Wordpress URLs. The script has two main URL types: Category URL: /...
1
vote
1answer
251 views

Nginx HTML content while redirect

When the redirection is configured in nginx, the response contains: <html>[CRLF] <head><title>301 Moved Permanently</title></head>[CRLF] <body bgcolor="white">[...
1
vote
1answer
205 views

301 Redirect, need to drop file name

I have many redirects working but I have one that needs to be redirected and drop the file name. redirect 301 /path/to/file/default.aspx http://www.domain.com/newpath/to/page/ When I implement this ...
1
vote
1answer
681 views

Apache2 name based virtual host always redirect 301

I've got a server (runnging Debian Squeeze) with Apache 2.2, there are 4 site running there. I'm using namebased virtulhosts because I've got a single IP. Initial configuration has been made with ...
1
vote
1answer
230 views

Google anaylics and multiple domain problems

The problem is that we apparently don't receive any tracking of google analytics. We have X domain for that particular site. Google analytics only appear to support one domain unless you setup links ...
1
vote
1answer
150 views

301 redirect, canonical question

I've designed my own 'latest news' page for my site - and I'm trying to keep the URL's clean. (eg) It should look like this : http://www.domain.com/21/this-is-a-clean-url/ When someone links to ...
1
vote
1answer
1k views

How to Block 301 redirects from third party domains in apache

A client of mine is receiving traffic from domain names which he wants to stop. The trouble I have is that they are using a 301 redirect which our server is just seeing as a normal web hit from the ...
3
votes
0answers
36 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 ...
2
votes
0answers
26 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 ...
2
votes
0answers
351 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
395 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
322 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
33 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
82 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
106 views

NGINX: Check if SSL (HTTPS) is available, if not, redirect to HTTP

The current config is: server { listen 80 default_server; listen [::]:80 default_server; listen 443 ssl default_server; listen [::]:443 ssl default_server; listen 192.168.0.5:80 default_server;...
1
vote
0answers
19 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
25 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
49 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
28 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
218 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
243 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 ...
1
vote
0answers
488 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
41 views

pound server listening to 0.0.0.0 causes a 301 redirect loop?

I have a pound 2.6 server in front of an apache 2.4.7 server. Both are in openvz containers in the same host and both have private ip addresses, as follows: [www.]my.domain:80 --> Internet --> ...
0
votes
0answers
10 views

Reverse proxying A domain to B, but have B be 301 redirected back to A

We have an old server say old.com, which now needs to become client-facing new.com. As such, we are using new.com to reverse proxy to old.com. This works. Clients see new.com. (Which internally is ...
0
votes
0answers
19 views

lighttpd rewrite in magento

I'm currently using below code in lighttpd.conf to redirect http to https. $HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0") } } However,...
0
votes
0answers
146 views

How to stop nginx 301 auto redirect when trailing slash is not in URI?

Everytime I try foobar.com/test in browser, nginx seems to redirect (301) the client to foobar.com/test/ . This behaviour is unacceptable. The proxied server is a remote apache web server. I have ...
0
votes
0answers
32 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
0answers
73 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
211 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
102 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
97 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
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
119 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 -&...
0
votes
0answers
38 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
369 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....
0
votes
0answers
135 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
928 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 ...
0
votes
0answers
105 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
692 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
115 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
1k 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 ...