http-status-code-301

IIS7 301 Redirect from a List of URLs

Recent changes are forcing me to add a bunch of 301 redirects. Seems that IIS7 is my best bet as compared to redirects within the files. I have found how to add them 1 by 1 but this requires the page/folder to exist (which most don't anymore(and creating them seems to defeat the point of the redirect)) and does not work on dynamic urls...

Strange 301 redirect problem

Hi all, I'm trying to redirect all URLs that start with "/?page=" to "/stuff/?page=" I have this in my .htaccess file: RewriteEngine on RedirectMatch 301 ^/?page=/(.*)$ http://www.mysite.com/stuff/$1 But it's not working.. What am I doing wrong? ...

httpHandler - subfolder issue

Hi, I am trying to redirect my old typepad blog to my new blog (permanent 301 redirect) that runs with wordpress. The new blog will also be on a new server. the old Blog had the following structure: http://subdomain.domain.com/weblog/year/month/what-ever-article.html The new Blog looks like this: http://www.domain.com/Blog/index.php/y...

setting up 301 redirects: dynamic urls to static urls

We are currently using a template-based website and are hoping to move to a site with static urls. Our domain will stay the same. I understand that using 301 redirects in a .htaccess file is the preferred method -- and the one that has the highest chance of preserving our google rankings. I am still new at all this and am having a ha...

Properly 301 redirect an URL with parameters to a different site

Right now I have an outdated URL that is getting 404'd: http://mysite.com/category/?tag=blue-example It needs to be redirected to: http://subdomain.mysite.com/blue/ This doesn't work: Redirect 301 /category/?tag=blue-example http://subdomain.mysite.com/blue/ How do I properly rewrite this URL? ...

.htaccess template

I made an .htaccess template; is there anything else that should be added or changed? # DEFAULTS ServerSignature Off AddDefaultCharset UTF-8 DefaultLanguage en-US SetEnv Europe/Belgrade SetEnv SERVER_ADMIN [email protected] # Rewrites RewriteEngine On RewriteBase / # Redirect to WWW RewriteCond %{HTTP_HOST} ^serpentineseo.com Rewrit...

SEO: Duplicated URLs with and without dash "/" and ASP.NET MVC

Hello guys, after reading this article "Slash or not to slash" (link: http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html) on Google Webmaster Central Blog (the oficial one) I decided to test my ASP.NET MVC app. For example: http://domain.com/products and http://domain.com/products/ (with "/" in the end), re...

Bulk import 301 redirects in IIS 6.0

Is there a mechanism, or any additional tools that I can make use of to bulk import 301 redirect rules into an IIS6.0 web application? I want to be able to 301 redirect some old .htm pages to their new home on a CMS to ensure the current search index entries resolve OK and don't 404, but there are roughly ~50 pages. The only way I've fou...

SEO redirects for removed pages

Hi, Apologies if SO is not the right place for this, but there are 700+ other SEO questions on here. I'm a senior developer for a travel site with 12k+ pages. We completely redeveloped the site and relaunched in January, and with the volatile nature of travel, there are many pages which are no longer on the site. Examples: /destinatio...

Process data BEFORE a 301 Redirect?

So, I've been working on a PHP link shortener (I know, just what the world needs). Basically when the page loads, php determines where it needs to go and sends a 301 Header to redirect the browser, like so... Header( "HTTP/1.1 301 Moved Permanently" ); header("Location: http://newsite.com"; Now, I'm trying to add some tracking to my r...

What is 301 redirect ? and how to do this?

It is ironical that after asking the question:- http://stackoverflow.com/questions/2985377/how-do-url-shortening-services-make-money-closed i am heading over to create another URL shortening service [ despite of the fact that it was closed without any proper answer ]. Till now i was thinking that i will just redirect the request to actua...

How to test an HTTP 301 redirect?

How can one easily test HTTP return codes, like, say, a 301 redirect? For example, if I want to "see what's going on", I can use telnet to do something like this: ... $ telnet nytimes.com 80 Trying 199.239.136.200... Connected to nytimes.com. Escape character is '^]'. GET / HTTP/1.0 (enter) (enter) HTTP/1.1 200 OK Server: Sun-...

IIS7 or .Net 301 Redirects from 1 domain to another

I have 2 domains. For the question, I will call them www.old.com and www.new.com. Both urls are pointing to the same IIS7 Site instance. I need to it up so that when someone goes to www.old.com they get a 301 redirect to www.new.com. The tricky part is I am using URL rewrites for pages within the site. So www.old.com/About.aspx redi...

Implications of not forwarding http:// to http://www.

Hi, my company is running IIS and DNN (I'm not a server guy, so color me ignorant), and I've read previous that you should either redirect your .http://www.mydomain to .http://mydomain or Vice Versa. Can anyone give me reasons to do this? (periods "prepended" to remove href) From what I understand, it's because search engines see those ...

Google Base API

Is there a way to retrieve product information using ruby and google base api. I have installed the googlebase gem: gem install googlebase? I created a test script as mentioned in the example at: http://googlebase.rubyforge.org/ require 'rubygems' require 'google/base' Google::Base.establish_connection('username', 'password') respon...

301 redirect everything to new root?

I am trying to do a 301 redirect of everything from an old subdomain to a new. I have a simple .htaccess Redirect 301 / http://www.smartphonesoft.com/ However if I goto the old URL with a subdir, it tries to redirect to the new domain with a subdir and fails. ie http://forum.smartphonesoft.com/reminder/ goes to http://www.smar...

How long do I need to maintain old URLs?

Ok, I know it is best practice that once you change or remove a page URL, to redirect that url to the new relevant URL. But for how long? forever? For example, I am using Google website optimizer to test different variations of a page. So I have to create a different url for each like: original.php, var1.php, var2.php, etc. once the t...

HTAccess Rewrite: 301 Redirect Index but not Subdomain

I'm creating an online community and I'm trying to set up a development server. Currently, I'm using GIT as my repository. I have both mysite.com and mysite.net; the .com being the primary site. My Goal: If a user goes to www.mysite.net they should be 301 redirected to www.mysite.com. If a user goes to dev.mysite.net they should b...

CURL is not following 301 Redirects, what do I need to do?

I am using the CURL c++ api to get quotes from Yahoo's financial API. The curl api and my code seem to be working fine, however I am getting a "301" redirect message when I tell CURL to visit the url I want. How can I get CURL to follow through to the 301 redirect and get the data I want? Here is the URL I am using: http://download.f...

How to redirect permanently (301) via .htaccess?

Hey guys! Can you please advise me how to modify my .htaccess so that http://example.com (non-www without trailing slash) http://example.com/ (non-www with trailing slash) http://www.example.com (www without trailing slash) will be permanently redirected (301) to http://www.example.com/ (www with trailing slash)? Additionally, are t...