The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
26 views

How to use parts of the old URL in a 301 redirect [duplicate]

is it possible to keep certain parts of an URL and to rewrite the rest? With a .htaccess 301 redirect. In my example I would like to rewrite URLs from this format http://blog.example.com/post-name ...
1
vote
1answer
211 views

nginx 301'ing limit_req rate limited requests instead of error page

I have a bulk search form on apache servers behind nginx. I'd like to protect that location so that the second request in a 10 minute period gets 301'd to a "Would you like to use our API" page ...
0
votes
1answer
112 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 ...
1
vote
2answers
262 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 ...
-1
votes
1answer
60 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 ...
0
votes
1answer
121 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
138 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
74 views

Preserving URLs after CMS migration with redirect database and apache http?

We will migrate an entire intranet from one CMS to another. All URLs will change in a non-predictable pattern, but I can capture a file with original,new URLs I can feed into anything. I have hundred ...
-1
votes
1answer
222 views

40.000 lines of 301 Redirect in httpd.conf [duplicate]

Possible Duplicate: best way to handle thousands of permanent redirects As object. I need to do 301 redirect, for about 40.000 pages. I know that putting this quantity of lines in ...
8
votes
1answer
2k views

Empty/Null Apache request entries in access log

This entry got logged in a Apache access log: IP ADDRESS - - [00/00/0000:00:00:00 -0000] " " 301 - "-" "-" It was detected by LogWatch as a null HTTP Response and also got marked as a successful ...
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
104 views

301 redirect (mod rewrite) a whole folder and all files with the get parameters

I want to redirect all urls starting with www.site.com/online/ to www.site.com some examples of the files I'm trying to redirect are ... ...
0
votes
2answers
161 views

Apache: Redirect all hits on subdirectory (301)?

Probably a simple problem, but I cant seem to figure it out: I've recently created a new website from scratch to replace an older website. The old website had a good SEO ranking which is obviously ...
1
vote
1answer
2k views

Apache - httpd.conf redirect with X-Forward-For - Not working?

I'm having an a-hole of a problem redirecting traffic. Basically, I'm building a new web server and it's on another version of my domain, so I want to redirect traffic not from this IP. Problem is ...
2
votes
1answer
3k views

NGINX: strip querystring in rewrite

I'd like to make a 301 rewrite to the sites's index without any querystring. Like this: http://example.com/anypage.asp?anyvar=anyvalue To: http://example.com/ Here's a real example: ...
2
votes
1answer
457 views

NGINX: 301 rewrites

I have a list of 301 rewrites to set in Nginx. And I want to specify exactly the uri instead of using regex. What's the write way to do that? This is what I think it should be done: rewrite ...
2
votes
2answers
158 views

.htaccess 301 redirect PLUS url rewrite

Premise: My photography website is www.domain.com and my blog is on www.domain.com/blog. Everything is on self hosted wordpress platform. On my index page I have my photo galleries. I now would ...
1
vote
3answers
859 views

Nginx: 301 redirect with query strings

I am redirecting /example.php?var=value to /index.htm like this: rewrite /example.php?var=value / permanent; However, the browser ins printing the final uri like this: domain.com/?var=value How ...
-1
votes
1answer
114 views

Nginx: simple page redirect

I'd like to make two simple 301 page redirections. For example: http://domain.com/example.php?var=value and: http://domain.com/some-page Both redirecting to: http://domain.com/index.htm Which ...
0
votes
1answer
220 views

Issue with mod_rewrite (possibly related to special characters?)

We have just made a new website for a client and for SEO purposes have a HUGE urlmap setup to rewrite the old site URLs to relevant places on the new site. Technical details are: CentOS 5.6 Apache ...
1
vote
1answer
212 views

Apache 301 redirect all but one file

I'm currently going back into an old domain and creating redirects for SEO purposes. I haven't done this much so I'm learning as I go along. I'm trying to: have some pages 301 directly to ...
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
498 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 ...
1
vote
1answer
3k views

Nginx redirect loop

I am trying to transfer a site from one server to another. I normally use apache, but this project was using nginx and Ultimate SEO for url modification. I am using the same nginx config file but I am ...
0
votes
1answer
258 views

Why does my IIS6 web server return a 301-moved permanently when it receives a https request?

I did not set the server up so there is probably a setting that I'm missing. My server has a SSL cert installed and it appears to be configured to accept secure connections. However, whenever a https ...
0
votes
1answer
98 views

several hundred redirects, whats the most efficient way of configuring them?

I am aware that having too many redirects in a .htaccess file can lead to a loss of performance in apache, this leads me to my question is there a faster way to configure redirects in apache ...
1
vote
3answers
691 views

How can use mod_rewrite to redirect a multiple specific URLs containing multiple query strings?

we recently migrated a site from a custom CMS to drupal. In an effort to preserve some links that our users bookmarked (we have about 120 redirects) we would like to forward the original URLs to a new ...
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 ...
3
votes
4answers
6k views

How to redirect non-www to www without hardcoding using .htaccess?

RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] ...causes a perfect, non-hardcoding 301 redirect from "www to non-www", ...
1
vote
2answers
280 views

Should a 404 ever be used in conjunction with a 301-redirect?

I'm working with a hosting company. I need them to setup a 301 redirect for one of my pages. I really care about the ranking on the search engines for this particular page. They claim that in order ...
0
votes
2answers
81 views

safe 301 redirection using htaccess for two domains

I have two domains, a new domain (newdomain.com) and and old legacy domain (olddomain.com). I want to safely redirect the old domain to the new domain. Easy enough. At the moment I am doing this ...
3
votes
1answer
9k views

How to permanently redirect port 8080 URL to port 80 using nginx

Because of my carelessness, I put http://www.domain.com:8080/xxx/index.html on the internet. I don't want to lose that traffic, so i want to permanent redirect that url to ...
6
votes
5answers
3k views

IIS 301 Redirect from “/index.html” to “/” for SEO Canonicalization

I used the technique explained here for IIS (http://www.webconfs.com/how-to-redirect-a-webpage.php), but this appears to result in an infinite loop when applied to "/index.htm" and redirected to "/". ...
0
votes
1answer
89 views

Does anyone have some stats on the effects of having large amounts (over 100) of redirects in apache conf?

We recently trasferred over a blog to a new site and had to setup a couple of redirects from the old articles to their new location. Now, the problem here is that we found out that on his old site he ...
0
votes
2answers
271 views

htaccess Redirect 301 problem

I have the following in my .htaccess file- Redirect 301 / http://www.foo.com/south-carolina-real-estate/ Redirect 301 ...
2
votes
1answer
3k views

IIS 6 - Setting up 301 redirect for non-www to www for SEO

Someone in the marketing department ran an SEO tool against our public website and found that about half of the links to our website go to www.mycompany.com, and half go to mycompany.com. Both of ...
0
votes
1answer
673 views

IIS replaces redirect status header from PHP with 302 Redirect

I hope I am posting this in the correct place... I'm having an issue with a 301 redirect in php. Looking at the headers, if I do a simple 301 redirect, it actually appears as a 302 redirect which is ...