http-status-code-301

Transferring Everything from One Domain to Another

I want to move from one domain to another one that is shorter and (hopefully) easier to remember, but I also want the transition to be as seamless as possible. I'm a coder so I know about 301 redirects and I intend to use them, but is there something easier than manually adding entries in my .htaccess file? The website is static with t...

IIS7 & 301 Redirects - Folder to File

Hi, We're using IIS7 and ASP.NET 3.5. We have updated our website with new pages. Now, there are many links on the internet pointing to our website, however many of those links are now broken due to a change in our directory structure for our new website. I need to have a number of requests, 301 redirected to the "new page." Many of...

.htaccess 301 redirect problem

Hi I have an application which uses opencart. I would like to make a 301 reditect in case the user types http://mysite.com. To be redirected in http://www.mysite.com (301 status code) Here is my .htaccess content: #Options +FollowSymlinks RewriteEngine On #OPENCART REWRITES START RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...

Unable to make a 301 domain redirection

Hi I have an application which uses opencart. I would like to make a 301 reditect in case the user types http://example.com. To be redirected in http://www.example.com (301 status code) Here is my .htaccess content: RewriteEngine On \#OPENCART REWRITES START RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Re...

301 redirect is working for www.example.com but not for ....

I am getting a strange problem with 301 redirect it the code is working for with www in the link and not working for with out www RewriteBase / RewriteRule ^api$ http://example.com/topic/api [R=301,L] if i type http://www.example.com/api it works but if i do http://example.com/api it doesnt work Adv thanks prasanth ...

IIS 301 Redirect

We have migrated our web site to new web site (don't ask why?) In order to help us with the transition, we created 301 redirect, from the old web site to the new web site, in IIS. The redirect looks like http://www.newWebSiteApp.com$S$Q This handles all the sub directory as well as query string nicely. we tested the redirect and works g...

.htaccess 301 redirect to homepage if page not found

I have cleaned up my site and discarded lots of pages. I have now 10pages left of a 100page site, all static html. I want any request for deleted pages to 301 redirect to homepage but can't figure out the .htaccess rules! ...

Is a "404 redirect" a legitimate redirect?

I have a situation where some users may come to mistyped pages, from links, etc. In most situations I can determine the correct page that should be displayed, so I want to redirect to the correct URL. Is a 301 Redirect appropriate in this case. 301 means "Moved Permanently", but in this case the document wasn't there in the first place....

RedirectMatch 301 Wildcards Without Variables at the End

How do You do a re-direct a group of pages with a wildcard that doesn't attach the variables at the end? For example, the .htaccess code below: RedirectMatch 301 /general/old_events_page.php(.*) http://mysite.org/events Yields this: mysite.org/events?id=749&friendly=1&date=20090308 But I just want it to go to http://mysite.org/event...

301 Redirect with htaccess and Cache: How to Delete Old Cache?

So after much help and research I've FINALLY been able to get the 301 redirects working via .htaccess file, but I noticed that unless I actually hit 'refresh' on my browser it will not redirect the page due to simply reading the cached site. I've tried closing all browsers, inserting the .htaccess file, and THEN opening a new browser, b...

IIS 6 setting to automatically forward to /default.aspx

This may be a bizarre question - and it may be a duplicate. I wasn't sure how to search for an an existing answer, so if this is a duplicate, I apologize. We have a request from a client to have their site redirect visitors so their browser displays the default page in the url. So instead of doing this: http://www.domain.com/ they w...

301 Redirect Help with Dynamic URL's and Multiple Id's

Hello, I just did a redesign for www.wildchildclothes.com which has a new URL structure. The old site ran on Zen Cart and had a bad URL structure. Here are some examples of what I want to redirect from: OLD: www.wildchildclothes.com/page.html?chapter=1&id=21 NEW: www.wildchildclothes.com and... OLD: www.wildchildclothes.com/index.php...

301 Redirects Library

I am updating my site and there will be new urls for alot of pages. I now the with IIS7, there is a way to do this with , but is there a library out there that allows adding 301 redirects quickly that works in both IIS6 and IIS7? ...

Why am I getting a redirect loop?

I have a website with a for example (http://example.com). I want any requests for / i.e. http://example.com to be redirected to http://example.com/stuff. I added a .htaccess file with the following line: redirect 301 / http://example.com/stuff Any suggestion? ...

Trouble redirecting all pages in a folder to a page at root level.

I've searched, tried various examples, and none, other than creating an explicit list of redirect statements seems to work. The biggest issue I have is that, although I have access to deploy web pages to the site, I do not have access to any web hosting control panel - site access was inherited, and until now it's been fine, but I think ...

Make Domain-Specific folder redirect using .htaccess rules?

I recently moved a files/images folder on my site (a Drupal installation) from /sites/default/files/ to /sites/example.com/files/, but there are now a lot of 301 errors from external hotlinking sources, and I'd like to redirect inbound links from the old 'default' path to the new 'example . com' path, but only for this one domain... Bas...

Landing pages: 301 or not?

We have a bunch of landingpages: http://ourdomain/landingpage. Each landingpage is unique in terms of title, texts, metatags, ... We mostly use these landingpages for adwords traffic, but also for offsite SEO links and banner campaigns. Today when a user enters a landingpage, a cookie (session variable) is set and then the user is 301 r...

Get Referals site from HTTP 301 with asp.net

Hi How can I get the Referals site from a HTTP 301 with asp.net?, if I use HttpContext.Current.Request.UrlReferrer Example domain.com (with http 301 redirect ) -- > otherdomain.com/page.aspx I am getting null on page.aspx Thanks ...

Redirecting a /?p=xxx wordpress URL

I need to redirect a single Wordpress URL that is formatted like this: www.bluewidgets.com/?p=123 to a clean URL on another domain. How can I do this via .htaccess? All of the tutorials I've seen say that I need to specify another part of the url, like index.php, before the query string, but my URL doesn't have one - it's just the domain...

Apache mod-rewrite for shorter urls

...