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

0
votes
0answers
14 views

How do you hide folders in IIS (hide 403 and avoid 301)?

I asked this question on http://security.stackexchange.com/ and was told to put it here We are getting ready for our pen test scan, and one of the issues we have is Hidden Directory Detection via a ...
0
votes
0answers
62 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
44 views

Redirect Loop with Nginx and Ghost

I am configuring full-site SSL for my Ghost blog. First I used Apache, then switched to nginx and the loop persists. I think this may be a rule error but unable to find it out. The config file: ...
0
votes
3answers
39 views

Nginx server redirect being ignored

I'm must be stuffing this up somewhere but can't see where. Nginx appears to be ignoring the following redirect. This currently resides in its own conf file, but I have placed it in the other files. ...
0
votes
1answer
29 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 ...
1
vote
1answer
31 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 ...
1
vote
2answers
64 views

Wordpress non-www to www redirect loop in NginX

I deployed my wordpress website on NginX successfully. I need permalinks to be http://www.mydomain.com/%postname% and blog to be http://blog.mydomain.com/%postname%. It redirects all www traffic to ...
0
votes
4answers
126 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
168 views

IIS 8 URL Redirect on site level

I am trying to do a simple 301 perm redirect to another url in IIS 8. The end results would be if i navigated to domain2.com i would end up on domain1.com. We are moving from IIS 6 to a new server ...
0
votes
0answers
33 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
20 views

How do I preserve FQDN accross multiple VirtualHost using Redirect (mod_alias)?

I'm trying to use mod_alias - Apache HTTP Server Version 2.4 in order to create simple Redirect, like following: Redirect /123 http://123.%{HTTP_HOST}/123 I have several VirtualHost that are using ...
0
votes
1answer
32 views

301 redirect on same hosting server

I originally bought the domain http://example.com with a hosting package and have run a Wordpress blog on that for a while. Now I've bought an added on domain http://example.com.au and have ...
1
vote
0answers
21 views

How to make a proper permanent redirect from a domain to another domain (and hosting provider)? [duplicate]

On the forwarding side: define DNS to go to the ones of the server where the site is: dns-sampleserver.com, dns-sampleserver.org, dns-sampleserver.biz On the receiving redirection side: this ...
0
votes
2answers
122 views

cname vs 301 redirect on namecheap

I am having trouble figuring out my DNS record types. I want the www subdomain to be my "canonical" page, so my configuration looks like this: www A record type actual ip address @ 301 ...
0
votes
1answer
76 views

In Nginx, how to redirect to another domain, but to also preserve the path AND the subdomain?

So, for instance, I have a domain olddomain.com and newdomain.com Here's how I want requests redirects to work: sub.olddomain.com/hello/world -> sub.newdomain.com/hello/world ...
1
vote
1answer
81 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
2answers
337 views

Why won't Nginx return a 404 error for URLs starting with a question mark?

I'm trying to get a rewrite rule working and I've discovered that if the URL begins with a question mark, Nginx fails to return 404 error as expected. Instead, index.html as defined in the root ...
1
vote
0answers
111 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 ...
1
vote
1answer
336 views

Nginx redirect all old domain subdomains to new one

I had a very long domain, so I decided to change it to a shorter and more friendly one. But since I have a lot of subdomains (in fact, I have a subdomain wildcard), I wanted to keep the subdomain ...
2
votes
1answer
377 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
2answers
308 views

Nginx proxy cache 301 redirects but ignore querystring

We have a lot of ad-based traffic that pass various query string params on the URL, but these do not affect the content/output of the pages. I currently have the following nginx proxy cache ...
0
votes
2answers
441 views

Why is nginx redirecting requests on port 8080 to port 80(apache)

I have a wordpress blog setup on apache2 (port 80) on Ubuntu 12.04, I also have a nginx setup listening on port 8080 serving the same blog. My problem is, whenever I try to open the blog on port 8080, ...
0
votes
1answer
58 views

301 permanent redirection changing URL structure [duplicate]

I changed category urls on site. Old are like this: www.example-name.com/category-name-exactly-same-keywords/ ...
0
votes
1answer
49 views

Rewrite rule custom 301 redirection

I have link like this: www.example.com/full-image/folder/subfolder/image-name.jpg-some-custom-keywords.html and I need 301 redirection to url like this: ...
2
votes
1answer
399 views

NGINX 301 Redirect a URL with parameters to new URL

I've deployed a site live and trying to redirect some of the original URLs to the new URLs. I'm fairly new with NGINX configuration on redirects like this. This one works: location /contactus.aspx { ...
0
votes
0answers
14 views

Will this mode of redirection work on my Wordpress blog?

Right now I host my blog on: http://www.marathontalk.com/boyontherun http://www.marathontalk.com is a fully-featured PHP site and my blog is a small part of it. For some complex reasons (which I ...
-1
votes
1answer
80 views

HTTP 301 moved for all nginx URL to a single HTTPS

Below is a config file that I am using with Nginx to redirect all WWW and non-WWW to the https:/domain.com URL server { listen 80 443; server_name domain.com www.domain.com; ...
0
votes
3answers
83 views

nginx https 443 redirection from no subdomain to 'www' subdomain

My configuration: server { listen 80; server_name mydomain.com; rewrite ^(.*)$ $scheme://www.mydomain.com$1; } server { listen 80; server_name www.mydomain.com; return 301 ...
0
votes
1answer
494 views

Redirect to a different directory - IIS7 ASP.NET MVC web.config

We have a bunch of published URLs that reference a directory called "events" http://www.mysite.com/anniversary/events http://www.mysite.com/anniversary/events/[...] They now want to rename ...
1
vote
1answer
230 views

Nginx redirecting domain to port 8000 with a 301

I have been looking everywhere to figure out why my nginx server is causing a 301 redirect on one domain, and not the other. I have two sites configured on this server in an apache style ...
0
votes
0answers
394 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 ...
0
votes
0answers
126 views

htaccess redirect affects bingbot, returning Redirection limit reached

Inside my .htaccess file, I have the following script: RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] <IfModule mod_rewrite.c> ...
1
vote
1answer
60 views

Nginx with ssl always returning 301

I am trying to setup nginx with ssl, to serve some static HTML and the output of some Python scripts (through uwsgi). It works fine with HTTP, but I am not able to make it run on HTTPS, as nginx is ...
0
votes
0answers
20 views

nginx redirect with entities

I want to 301 all urls that contain an entity: %B2 I have: location ~ %B2 { return 301 http://www.domain.com ; } however it has no effect, is it possible to do this with nginx?
1
vote
1answer
109 views

IIS - most efficient way to redirect many host names

I'm setting up a win 2012 / IIS 8 web server with URL Rewrite module installed to replace an existing web server. It will have 3 heavily used sites on it mapped to different domain names. ...
2
votes
2answers
218 views

Use subpath internal proxy for subdomains, but redirect external clients if they ask for that subpath?

I have a VirtualHost that I'd like to have several subdomains on. (For the sake of clarity, let's say my domain is example.com and I'm just trying to get started by making foo.example.com work, and ...
2
votes
1answer
67 views

nginx - which way is better to redirect and why

I want to redirect from www.mydomain.com to domain.com in nginx. I search the internet and found two ways: First way server { listen 80; server_name www.domain.com; ...
-1
votes
1answer
135 views

http:// to https:// Redirection with page reload in Apache 2 (HD Web Hosting) [duplicate]

I'm trying to check to see if the address accessed is using a secure connection when accessing a certain page, or not. If not, I want to redirect the traffic to the proper https:// address. I have ...
0
votes
1answer
80 views

Efficient 301 redirects in Apache (www to non-www and vice-versa)?

I came across an article titled "Efficient 301 Redirects." For example, if you are trying to redirect your site from www to non-www domain, the article suggests that when compared to this ...
0
votes
1answer
253 views

how to stop htaccess URL redirect loop [duplicate]

I am new to htaccess. so when i want to do a url redirect using htacces, i always get a redirect loop, and don't know how to fix it. I have been searching on the web but coundn't find a solution for ...
0
votes
1answer
99 views

redirect a directory to a new domain without touching the main website

I would like to redirect https://mineyourmind.de/forum to https://mineyourmind.net/forum . Every rewrite rule I could google didnĀ“t work, they also redirected the main domain (mineyourmind.de). Im ...
0
votes
1answer
98 views

Wildcard domain redirect to www results in www.www.domain.com

I'm trying to configure OpenResty (nginx) to redirect any non www domain to www. one but the thing that i'm acheiving is this : www.www.domain.com eh? here are my server blocks server { ...
0
votes
1answer
339 views

Redirect HTTP to HTTPS with ldirectord/LVS

We're using LVS for load balancing and want to do a 301 redirect for http://example.com to https://example.com LVS is enabling https without issue, but the http real servers are not being added to ...
1
vote
2answers
217 views

How to not redirect if requesting server_name only

Most people type in the browser bar: mysite.com and not https://mysite.com. Alot of developers including myself have something like this in their Nginx config file which means that this mysite.com ...
0
votes
2answers
105 views

nginx permanent move not registered by the browser

We had a "beta" site set up under http://beta.domain.com, while http://www.domain.com contained a launch page. We now got rid of the launch page and moved the site over to the actual domain. I set up ...
0
votes
2answers
130 views

How to simulate Apache [END] flag on a redirect?

For business-specific reasons I created the following rewrite rule for Apache 2.2.22 (mod_rewrite): RewriteRule /site/(\d+)/([^/]+)\.html /site/$2/$1 [R=301,L] Which if given an URL like: ...
-1
votes
1answer
626 views

How to find source of 301/302 redirect loop? Heroku GoDaddy Zerigo

this should be a relatively simple problem but I'm having trouble.I hope this is the right forum to post on as I've seen people get booted off stack-overflow for this sort of thing. I've setup a web ...
-1
votes
1answer
103 views

ssl 301 redirect for nginx and wordpress

What would be the best method to load https in wordpress for a specific url? I'm using events manager pro and would like to have the event pages load securely with out using a plugin.
0
votes
1answer
286 views

How to get Apache 301 redirects working with Varnish?

I'm trying to add a number of redirects from old domains to new domains which I have done before using simple 301 redirects in my vhost files like: <VirtualHost *:8080> ServerName ...
0
votes
2answers
44 views

https redirect to https (No Cert Warning) [duplicate]

Am I right in thinking that in order to redirect an https URL to another https URL without a certificate warning, the first https URL has to have it's own valid certificate and IP address? Am trying ...