Thickbox redirect to homepage - thickbox

I want to close my tickbox after the necessary change are made to the DB.
I am using the keepThis=true&TB_iframe=true in the begining of my link.
When done, I am redirecting to a page but it redirects in the thickbox.
How can I make the thickbox disappear and redirect to another page?
Thanks!!

Related

How can I redirect a page to external URL in Perch CMS

I have a Perch web site which will be moving (gradually) to a new domain, so I need to redirect some pages to the new URL.
e.g. mysite.com/page1 => mynewsite.com,
mysite.com/page2 stays the same
I have tried doing redirects using .htaccess, for example:
Redirect 302 /page1 https://mynewsite.com
This works fine if you type the URL in the browser address bar, but when I click on any link to page1 on the web site, all I get is a white screen and no redirection (I have cleared the browser cache). But then if I refresh the page, it redirects. What am I missing, is there a specific way to redirect Perch pages using .htaccess?
I can't see any way to add a link manually in the admin section (sorry I am not very familiar with Perch) - all I can see is 'Page to link to', with no option to enter an external link. How can you set the link to an external URL?
Thanks.

How to redirect from prestashop Home page to different URL

I can't figure out how can I redirect my home page to different URL. I have found tutorials how to redirect to product or category page but these doesn't work in my case.
For example:
When someone goes to myprestashop.com they will be redirected to myprestashop.com/differentpage
Sorry, if it is very simple, I'm new to prestashop and ecommerce.
You can use the following code to redirect page to another page
From frontend:
Tools::redirect(Context::getContext()->link->getPageLink('abc', true));
If you want to redirect only one page to a specific page, it's better (and also easier) to use .htaccess to do this.
How to Redirect one Page url to another

.htaccess redirect doesn't work on first load, but does work on refresh

I have a rewrite rule that should redirect a user from a pdf to a page on the site. When I go to the url, the pdf loads. However, if I refresh the page, the redirect works.
Here is my code:
RewriteEngine On
RewriteRule ^wp-content/uploads/2013/08/Judy-Special-Report-2.5.pdf$ http://sellinginaskirt.com/outsell [NC,L,R=301]
The goal is for http://sellinginaskirt.com/wp-content/uploads/2013/08/Judy-Special-Report-2.5.pdf to redirect to http://sellinginaskirt.com/outsell.
To recreate the issue, go to http://sellinginaskirt.com/wp-content/uploads/2013/08/Judy-Special-Report-2.5.pdf. The PDF loads. Then refresh the page. http://sellinginaskirt.com/outsell loads.
What changes can I make to fix this issue?
I'm experiencing this in Chrome.
Your rule is fine. It redirects for me in every browser.
What's probably happening is that when you click on the link, your browser brings up a cached copy of the PDF. But when you explicitly reload the page, it sends the request to the server instead of pulling up a cached copy of the page and you see the redirect.
If you want to test it again, clear your chrome cache and hit the link again.

How to modify .,htaccess to redirect people when they click on link

I have some website, on it i want to put link to other external site:
http://zzz.com
When user hovers it - he will see zzz.com but when he actually clicks the url - htaccess will redirect him to other website
http://yyy.com
I want to do this with all redirects on the spoken page.
I know its possible to do that in .htaccess but i cant find a way.

Image Hotlink Redirect

I want to redirect any web page that uses my images to my website home page. Is this possible?
I know you can redirect to a custom image, but can I redirect the page using my image to my website front page?
Thanks.
It is possible to redirect an image request to your home page, but it is NOT possible to redirect the page that requested that image to your home page (imagine the security risks that this would pose).

Resources