http-status-code-301

.htaccess Problem

I'm having trouble with redirecting urls using the .htaccess file. This is how my htaccess file looks like: Redirect 301 /file-name/example.php http://www.mysite.com/file-name/example-001.php Redirect 301 /section-name/example.php http://www.my-site.com/section-name/example-002.php RewriteEngine on RewriteCond %{HTTP_HOST} !^www.mysite...

301 redirect

How do i redirect a url to domain . eg. http://www.mydomain.com/index.php=HairThing --> http://www.mydomain.com How do i redirect a non-www to www WITHOUT a slash at end ? eg http://mydomain.com ---> http://www.mydomain.com ...

How to do 301 redirects in asp.net from old Apache mod_rewrite style urls when moving a site from php to asp.net?

Hi I have an existing site in php running on Apache using the mod_rewrite plug-in. In other words, I currently have urls like www.example.com/section/subsection/ which Google and others have indexed. However, the site needs a major upgrade, and I would like to move it to asp.net. I only have the option of using a shared hosting solutio...

redirecting w., ww., wwww. to -> www.

I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com. My boss wants to ensure typos make it to the site as well. They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression, however, tools such as http://www.seoconsultants.com/tools/headers.asp don't seem to show a...

How do I use .htaccess to redirect an aspx page to a php page?

I recently moved from a asp.net host to a PHP host. I am trying to setup 301 redirects of my old urls using .htaccess. Here is what I want to accomplish: old url: http://www.vasanth.in/downloads/download.aspx?file=file.zip new url: http://www.vasanth.in/downloads/download.php?f=file.zip I tried the following: RedirectMatch 301 /downl...

Redirecting from domain.com to www.domain.com keeping GET & POST data

Currently my web site shows the same data if people go to domain.com or www.domain.com. I would like to set up a redirect so all requests to domain.com will get sent onto www.domain.com. So a user who goes to domain.com will get redirected to www.domain.com. Just like what happens if you go to http://amazon.com/?a=b I don't want to lo...

SEO and Duplicate URLS

I'm updating a website's menu system and adding SEO urls. I'll have two URLs pointing to a similar resource for a while but only one of them will be rendered on the menu. Should I leave the old URLs or delete them? If I leave them then google results wont link to 404 pages but they may be considered as spam. Should I redirect them perh...

301 all 404s to homepage

Does anyone know the best way to do this? Apache, tomcat, linux ...

IIS 6 301 redirect problem

I'm having a problem with an IIS6 301 redirect. I've set up the following redirect for the domain domain.com to go to www.domain.com$S$Q (under Home Direcotry in Site Properties). If I navigate to domain.com I get redirected to www.domain.com with no problems. But if I go to domain.com/dir I get redirected to www.domain.com/dir/dir ...

How do I use .htaccess to force www. while using Zend Framework

I want to force a www. prefix on my website by using a .htaccess 301 redirect. I am currently trying: RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] Which normally works, but I am using Zend Framework which causes all requests to be redirected back to http://www.mysite.com/index.php reg...

301 Redirect vs DNS change: Is it ever safe to kill a 301 redirect and update the DNS for a subdomain?

I have a site running at a subdomain that has been migrated to a new server and new domain name. To preserve search credits I know a 301 redirect is the proper way to handle migrating the transition. (The marketing department speaks of 301 redirects like I've never heard of.) From a technical standpoint, I don't understand how long ...

SEO - Links and GET query strings

If there are a number of links to my web site like this: www.domain.com/?linkid=101 www.domain.com/?linkid=102 www.domain.com/?linkid=103, which all get 301ed to the same page, will these be treated by Google and other search engines the same way as links that have no difference in the query string? ...

Will re-direction from home page affect search engine crawling?

There is a new domain, let's say va.in. Content is being prepared for the sub-domain a.va.in The idea is that va.in/index could contain pointers to various sections sometime in future (e.g. b.va.in, c.va.in etc.). As of now, it does not make sense to have such a page as there is just one section i.e. a.va.in If I decide to re-direct ...

Static 301 in Google App Engine?

Is it possible to define static rule for 301 redirect to canonical host name? I.e. I'd like what in Apache's mod_rewrite is done with: # To force the use of RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://www.example.com/$1 [L,R=301] I know I can do...

Multiple 301 Redirects after restyling a website (SEO)

We have updated our site recently; the old one had around 300 pages... the new one about 80 ;) This because in the old structure we had, for every argument, many pages. Instead, now we have just one page with a 'summary'. For example, the old structure about the 'car' argument was: Main page, 'cars' sub-page, 'tires' sub-page, 'engin...

301 redirect with PHP and MySQL on 404 ... how?

I am transferring a large static website of 500+ pages to a Joomla installation but what I am wanting to do, rather than code a 500+ line .htaccess file, is to use PHP's built in 301 header redirect to dynamically redirect requests that come in to the new URL. So for example, after I move the site, the following URL would 404 without a ...

301 Redirect

Hi all, i need to rediret my site from say http://www.foo.com/index.cfm to http://www.foo.com. In this application index.cfm is my default page that i have made in IIS. When i am trying 301 redirect i am getting redirect loop error. Whole app is in coldfusion. i am doing this setting in iis on my index.cfm page. Please give some advice o...

How do I programatically 301 redirect in an asp page?

I'm upgrading some classic asp pages to .net, but not all of them. Rather than go and modify all the links in this backwards system, which pulls some of its links from a cms data store. I would like to take advantage of http and just remove the code our of that file, and perform a programatic 301 so that all the other pages can just be u...

301 Redirecting URLs based on GET variables in .htaccess

I have a few messy old URLs like... http://www.example.com/bunch.of/unneeded/crap?opendocument&part=1 http://www.example.com/bunch.of/unneeded/crap?opendocument&part=2 ...that I want to redirect to the newer, cleaner form... http://www.example.com/page.php/welcome http://www.example.com/page.php/prices I understand I can re...

JavaScript build options/tools

These days I find myself shifting out more and more work to the client side and hence my JS files tend to get bigger and bigger. I have come to the point where most HTML pages have half a dozen or more JS imports in the header and I realised that this is hurting loading times. I have recently discovered this script which lets you downlo...