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...
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...
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/...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
...
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...
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...
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 ...
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...
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...