http-status-code-301

Sitewide 301 Redirect with a subset of different redirects

I am trying to make a sitewide 301 redirect for a site with around 400 pages but also have a subset of about 10 individual pages that don't follow the sitewide redirect and should point somewhere else. Any ideas how to format such redirect rules so the sitewide redirect doesnt conflict with the subset pages redirect? I am starting wit...

Help with redirection for .com, .net and .org domains: redirecting all of them to .com.

Hi all! I need help with some rules in ISAPI_Rewrite in my installation. (If you only know mod_rewrite could be a good help to, so I would adapt the configuration). I'm going to be very honest about my needs. I need to do this configuration in the next few hours, and don't have time right now understand everything about rewrites, regula...

RedirectMatch 301 for just html file

Hey All. I need to do a mass 301 Redirect for all pages ending with .html for my site. I am looking to move all the old .html files to a sub-folder ir. RedirectMatch 301 (.*)\.html$ http://www.domain.com/folder/$1.html When I add this and refresh the browser I get a ton of folder/folder/folder now after the url ie domain.com/folder/...

.htaccess 301 redirect without GET var

Hi, For a website I'm currently working on we're redirecting our old URL's permanently to new ones like this: Redirect 301 /oldfile.php http://www.site.com/show/newurl Now I come across this situation in which the old url has a get var like: Redirect 301 /oldfile.php?var=name http://www.site.com/show/newurl This will redirect the oldf...

How do I do this simple 301 redirect from index.htm to root?

I've read various reference sites on redirection, and to be honest I understand very little. I currently have standard WordPress mod_rewrite redirect rules in my .htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /in...

cakephp site domain change, having 301 issues

I moved my cakephp site from a subdomain over to a different domain. I handled the permanent redirect in my htaccess file but in the redirect i am losing my neat/clean url handling. old site iphone.gameachievements.org new site gameachievements.org example of current redirect iphone.gameachievements.org/games/jungle-swing -> gameac...

301 Redirect and query strings

I am looking to create a 301 redirect based purely on a query string see b OLD URL: olddomain.com/?pc=/product/9999 New URL: newurl.php?var=yup My normal way of doing this would be redirect 301 pc=/product/9999 newurl.php?var=yup But this time I am trying to match a URL that that only contains the domain and a query string... Wha...

How do you redirect in ColdFusion and control the status code (i.e. 301 instead of a 302)

This code does a redirect, but uses a 302 status code: <cflocation url="http://stackoverflow.com" addToken="no" /> I found this on the Internet, but I think it only works in ColdFusion8. I am using ColdFusion7. <cflocation url="http://stackoverflow.com" addToken="no" statuscode="301" /> Hoe do you control the status code in Cold...

htaccess Redirect 301 problem .. all redirects with one string fail to redirect and 404

So I have moved a website and am trying to 301 redirect everything, which I do quite often so this is a weird problem but probably something stupid I'm not seeing. ALL of my redirects are working fine, except any redirect that the first string starts with "/Dining" or "/dining" are failing. For example, this redirect works fine- Redir...

SEO - Problems possibly related to 301 Moved Permanently

Right, here's the story: We have had a website for one of our brands now for many years, the site design was very bad and recently did a complete overhaul, mostly design, but also some of the backend code. The original site was using links such as this example.com/products/item/127 and thus I wanted to change them to be move user frien...

301 redirect vs parking

I have several domain names registered, each a slight variant of each other. E.g, fastcar.com fast-car.com fastcar.co.uk fast-car.co.uk etc.. I don't wish to be penalized for duplicate content or spammy links by any of the major search engines. Should I park them all directly on the main domain I wish to promote, 301 redirect them t...

Removing http301 redirect from client's cache

Hi, I have a server/client architecture where the client hits the ASP.NET server's service at a certain host name, IP address, and port. Without thinking, I logged on to the server and set up permanent HTTP301 redirection through IIS from that service to another URL that the machine handles via IIS (same IP and port), mistakenly thinkin...

.htaccess: Allow only one Folder Structure - 301 Redirect

Hello, how can I allow only one Folder-Structure with .htaccess like that: http://www.example.com/**dynamicword**+FIXEDWORD1+FIXEDWORD2/ the dynamicword is not fix, anything else is 301: http://www.example.com/**dynamicword**+FIXEDWORD1+mistype/mistype/ --> 301 http://www.example.com/**dynamicword**+FIXEDWORD1+mistype/mistype --> 301...

Can you detect a 301 redirect with Microsoft.XMLHTTP object?

I'm using VBScript and the Microsoft.XMLHTTP object to scrape some web data. I have a list of URLs to check, but unfortunately some of them 301 redirect to others on the list, so I wind up with redundant data. Is it at all possible to make the XMLHTTP object fail on 301 redirect? Or at least cache the original response header? Or oth...

How can I 301 redirect domain.com/tag/* to domain.com/blog/tag/*

Hi, I am trying to redirect links to domain.com/tag/* to domain.com/blog/tag/* (where * is the actual tag name - eg music so domain.com/tag/music would redirect to domain.com/blog/tag/music) I have been trying but I just can't wrap my head around it. Any help would be appreciated. Thanks ...

301 redirect with htaccess & textpattern

Trying to set up a 301 redirect for a change in domain. I'm using Textpattern which already has a mod rewrite. When adding the redirect I'm prompted with a error page on the site, stating that the page has resulted in too many redirects! This is the htaccess file in use... <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relativ...

301 Redirect & site alias

so I have a site I want to take offline. developmentsite.com and I want to redirect to a new site. So I do a 301 redirect. Redirect 301 / http://www.newssite.con. Now I want to continue working on developmentsite.com so I set it up as an alias on my own site mysite.developmentsite.com but because the .htaccess in the main httpdocs fol...

How can I use mod_rewrite to redirect children pages/directories to a parent directory?

So I have a whole series of redirects in place for a bunch of pages I want redirected to their parent directory (e.g. /faq/question1/ -> /faq/), but it's very inflexible, as they're manually generated. How can I set up a RegEx-fueled RewriteRule for this? I haven't been able to figure it out, and would dearly love some guidance. Here's ...

Client Web Browser Behavior When Handling 301 Redirect

The RFC seems to suggest that the client should permanently cache the response: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html 10.3.2 301 Moved Permanently The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link...

Rewrite a dynamic URL to a new dynamic URL

I am new to the RewriteEngine and have not been able to find an answer to the following issue. I run an ecommerce site with an ever changing catalog of product skus. Our URLs are dynamic. The question is, what if I want to have a dynamic variable redirect to a different dynamic variable. For instance, I want: http://www.mydomain.com/pr...