Hi i want when the user clicks a link with href="www.somedomain.com/#sth" the browser redirected to window with www.somedomain.com/#sth and stays in the same page of course, but the url becomes www.somedomain.com/sth in address bar, but is understood as www.somedomain.com/#sth so no problems arise.
Related
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.
I have a problem in which there are three conditions:
1. The page should not open if it is opened in the browser or follow the link
2. The page should open if {HTTP_REFERER} google
3. The page should not block {HTTP_USER_AGENT} googlebot
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!!
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.
Currently I have this:
RewriteRule ^Skills$ http://mypage/resume.php#Skills [NE,NC,L]
Which redirects properly to the anchor link when I have the url: http://mypage/Skills.
However the URL in the browser shows the actual anchor link: http://mysite/resume.php#Skills
Instead of showing me http://mysite.com/Skills
How can I redirect and rewrite the url?
It is redirecting the browser because you have an http://mypage in front of your RewriteRule target. This automatically tells the rewrite engine you want a 302 redirect so the address bar of your browser is going to be changed. However, the problem here is if you remove it so that it's just /resume.php#Skills, it will internally rewrite the request (preserving what is in your browser's address bar) but the fragment (the #Skills) will be useless.
Fragments are used on the client side to tell it to handle the content that it requested in a certain way, usually, to page to where there is a named anchor. If the browser doesn't see the #Skills, it isn't going to page to the "Skills" named anchor. If you don't redirect, the browser won't see the fragment because it is being internally handled by the server and the server is going to ignore the fragment.
There may be some kind of javascript solution that tells the browser that the content it just loaded http://mypage/resume.php needs to be paged to a certain named anchor. It may be able to do it by looking at the browser's address bar, seeing that it is requesting /Skills, and onload() it pages to the Skills anchor.