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
2k 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: ...
1
vote
1answer
67 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
94 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
1answer
143 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
1answer
2k 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
542 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
213 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
136 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 ...
0
votes
1answer
199 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 ...
0
votes
1answer
72 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
208 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
123 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: ...
0
votes
1answer
37 views

Redirecting depends of Variables in Header

Issue I've difficulties to understand if it is possible to do redirects depends of variable in Header using Domino server (R9). AIM Redirect all requests (for 1 particular website) to: ...
0
votes
1answer
89 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 ...
0
votes
1answer
1k 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
1answer
122 views

Nginx Vhosts with SSL

I have 3 domains running on an nginx server with ssl domain.pw domain.info domain.mobi i have sni enabled, and am using a vhost for each site. the host records for the site are all like this A ...
0
votes
1answer
438 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
1answer
132 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 ...
0
votes
1answer
151 views

301 redirect mod_rewrite links from old affiliate system to new

I am completely new to (& am completely lost with) apache commands. I am working on a new J! installation that is intended to be a replacement of the clients existing regular html site. New site ...
0
votes
1answer
172 views

Redirect all dynamic links served using https to http

So, here is the situation: We are running a website which is powered by Drupal. Sometime ago, it was decided that the website should be served as SSL. The settings to redirect the site from http to ...
0
votes
1answer
59 views

If I redirect all users (Except me) from within .htaccess, do I need a robots.txt file

So.. I have my live version of my site e.g v1.0 at domain.com I then have my development testing version at testing.domain.com I want testing.domain.com to only be accessible to me for testing, and ...
0
votes
1answer
74 views

Apache - How to Ignore Paths and Paramaters in 301 Redirect

Say I want all requests to example.com to redirect to abc.com. How can I make everything redirect to the root of abc.com and not include any paths or parameters included in example.com? For example ...
0
votes
1answer
93 views

Rewrite a directory to / while keeping actual directory structure in tact?

My site exists www.site.com/forum I have no need for /forum but I do not want to go through the effort of changing everything. Is there a way I can get Apache to rewrite the URL so that it uses the ...
0
votes
1answer
554 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 ...
0
votes
1answer
115 views

How to enable WordPress to have multiple sites without a re-direct

I'm using WordPress to manage my site and when the site does a re-direct, it slows down performance. For example, WordPress allows you a single default site, www.mycompany.com. If a user goes to ...
0
votes
1answer
116 views

mod_rewrite, 301 problem

Currently I can access specific site in two ways: 1. http://a.com/foo/bar 2. http://a.com/index.php?url=foo/bar What I'm trying to achive is to allow to do it only using first way, and make ...
-1
votes
1answer
129 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.
-1
votes
1answer
63 views

301 redirect help needed for urls with parameters

How do I 301 redirect all urls such as http://domain.com/languages/italian/itemlist.feed?start=[0-9]&format=feed http://domain.com/languages/italian/itemlist.feed?format=feed&type=rss to ...
2
votes
0answers
319 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, ...
1
vote
0answers
228 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
0answers
211 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
208 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
354 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
40 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
0answers
21 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
151 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
36 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
64 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
0answers
43 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 ...
0
votes
0answers
28 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
43 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
39 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
0answers
44 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
0answers
47 views

Apache2 listening on https port but not responding to https request

I am trying to setup a re-direct from http to https on apache and have the following config : <VirtualHost *:80> ServerName www.mycompany.eu ServerAlias mycompany.eu ...
0
votes
0answers
80 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
317 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
166 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
0answers
58 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
34 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
0answers
691 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 ...