cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone know how to do a redirect in firefox?

HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Anyone know how to do a redirect in firefox?

I want to redirect anything going to www.amazon.com/*ebook/* to www.amazon.co.uk/*ebook/*
I have tried the redirector extension which shows the test working but doesn't redirect in FF. I DON'T want to redirect ALL traffic from the .com site just ebook links.
33 REPLIES 33
ianapple
Newbie
Posts: 6
Registered: ‎24-01-2016

Re: Anyone know how to do a redirect in firefox?

Have a look round the menus.
I don't use that website so can't tell you where to go.
(Sound familiar?)
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

What you can post the same sarcastic post twice. What you have posted has NOTHING to do with this issue.
If you want help on THIS forum can the sarcasm.
Anonymous
Not applicable

Re: Anyone know how to do a redirect in firefox?

I don't know if this is of any use but can't you add an eBooks entry in to /etc/hosts to re-direct to .co.uk?
178.236.6.251 ebooks, ebook
Then simply navigate to http://ebooks
SpendLessTime
Hero
Posts: 3,000
Thanks: 928
Fixes: 86
Registered: ‎21-09-2009

Re: Anyone know how to do a redirect in firefox?

try this add-on https://addons.mozilla.org/en-GB/firefox/addon/redirector/
Ex - Plusnet Customer (2009 - 2023) now with BT
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

Quote from: Hairy
I have tried the redirector extension which shows the test working but doesn't redirect in FF. I DON'T want to redirect ALL traffic from the .com site just ebook links.
Anonymous
Not applicable

Re: Anyone know how to do a redirect in firefox?

When you say ebook links what exactly do you mean? Where are these links?
If you run or are willing to run Apache on your network I think you should be able to do this using a combination of dns spoofing or host file entries and server rewrites or redirects, but that's maybe overkill.
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

They are like this example.
http: // www. amazon. com/Divergent-Trilogy-Book-1-ebook/dp/B004CFA9RS/ref=asap_bc?ie=UTF8
it would want to be redirected to :
http: // www. amazon.co .uk/Divergent-Trilogy-Book-1-ebook/dp/B004CFA9RS/ref=asap_bc?ie=UTF8
added spaces so it doesn't get linked.
I have this greasemonkey script that is supposed to do it but doesn't:
// ==UserScript==
// @namespace    http://www.petefreitag.com/greasemonkey/amazon_localize
// @name          Amazon.co.uk Localizer
// @description  Replaces product links from amazon.* to amazon.co.uk
// @include      http://*
// @include   https://*
// @exclude      http://*.amazon.*
// @exclude      https://*.amazon.*
// ==/UserScript==
(function() {
var links = document.getElementsByTagName("a");
for (var i=0;i<links.length;i++) {
var href=links.href;
if (href.match(/amazon\./i)) {
var asin = href.replace(/.+ASIN\/([A-Z0-9]+).*/i, "$1");
if (asin.length <= 13) {
links.href = "http://www.amazon.co.uk/exec/obidos/redirect?tag=petefreitagsh-21&path=ASIN/" + asin + "/ref=";
}
}
}
})();
SpendLessTime
Hero
Posts: 3,000
Thanks: 928
Fixes: 86
Registered: ‎21-09-2009

Re: Anyone know how to do a redirect in firefox?

@hairy
Well using https://addons.mozilla.org/en-GB/firefox/addon/redirector/?src=search
and this rule
Edit Redirect
Description:  ebook
Example URL: http://www.amazon.com/Divergent-Trilogy-Book-1-ebook/dp/B004CFA9RS/ref=asap_bc?ie=UTF8
Include pattern: http://www.amazon.com/*ebook/*
Redirect to: http://www.amazon.co.uk/$1ebook/$2
Pattern type:  Wildcard
Example result:
http://www.amazon.co.uk/Divergent-Trilogy-Book-1-ebook/dp/B004CFA9RS/ref=asap_bc?ie=UTF8
It does work for me using the example you gave when the .com address is put into the address bar or by clicking on the .com address on the Google search page results

Ex - Plusnet Customer (2009 - 2023) now with BT
Anonymous
Not applicable

Re: Anyone know how to do a redirect in firefox?

Looks to exactly what you're looking for.  Smiley
ianapple
Newbie
Posts: 6
Registered: ‎24-01-2016

Re: Anyone know how to do a redirect in firefox?

Quote from: Hairy
What you can post the same sarcastic post twice. What you have posted has NOTHING to do with this issue.
If you want help on THIS forum can the sarcasm.

Just trying to help.  Like you were.  With the same result.
Goose, gander etc.
Grin
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

@george just tried it with the example one clicked on from here, still on .com.
Wonder if it is one of my other extensions blocking it?
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

Will try it on a fresh profile without all my extensions.
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
Fixes: 10
Registered: ‎10-04-2007

Re: Anyone know how to do a redirect in firefox?

I've just tried the redirector with it set up as per georgelnx's instructions and it worked (once I found all the blessed spaces you'd added Grin ).
One thing: where he has shown
Example URL: http://www.amazon.com/Div...FA9RS/ref=asap_bc?ie=UTF8
I hope you are entering the full URL and not the truncated one as it appears on the screen. i.e.
http://www.amazon.com/Divergent-Trilogy-Book-1-ebook/dp/B004CFA9RS/ref=asap_bc?ie=UTF8
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£14.40/month)
Mobile: iD mobile (£4/month)
HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
Registered: ‎16-02-2009

Re: Anyone know how to do a redirect in firefox?

I clicked on a book on the Amazon.com site. I also used the full url from the example.
I actually had something similar setup in redirector using $1$2 not $1ebook$2, neither of which work for me but work on the example pasted into the test box.