HTML - Redirect Script
On my website, i currently have a button that directs the user to a module on that domain.
How would i make that button redirect the user to another(different) domain? Would i just replace the "module" with the 'different domain'? or is it more complex? Thanks, any help is hugely appreciated should this work? i just erase all the code under the button and insert this ? <?php header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?> Similar Tutorialshi, i need some help with this. the following line is in a script <META http-equiv='refresh' content='1; URL=http://lblah.com/radio.php?ipp=84.95.247.20&port=22930&ch=898'> now this script redirects to another page.. is there some way i can get it to do this without actually leaving the page im on. thanks in advance for your help hi how do u use a redirect 301 code in html file in a website ? and wat is the use of that ? Hi I want to know what main difference is between 301 redirect and 302 redirect. I redirected my site permanently (301) to another site and I lost all my original hyperlinks on the old webpage. If I want to keep all previous links alive, what should I do? Thanks! Redirect might not actually be the thing that I'm looking for, but I here's what I'm looking for. When you visit the website, and image is shown taking up the whole page. It stays for 2-5 seconds, then redirects you to the normal home page. (Maybe the image would also be a link to the home page so people could speed things up) Thanks very much. can someone tell me how i would go about creating a redirect for an old RSS feed. i want the old feed address to point to my new Wordpress-created RSS feed address. i searched around a bit and found this code snippet... Code: <?xml version="1.0"?> <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> ...but when i put it in place of my old feed code, here was the browser result... Code: This XML file does not appear to have any style information associated with it. The document tree is shown below. <redirect> <newLocation>http://www.wepub.com/myweblog/rss.xml</newLocation> </redirect> am i doing this wrong? what is my best option? Is there any HTML code to redirect mistyped urls? Let's say someone wanted to get to a music section of my site. They type in XXX.com/music instead of XXX.com/music.html. Any way to get this done? I have a link going direct to pdf documents on one site eg www.one.com/blah.pdf. The pdf's are moving to a new web site www.two.com/blah.pdf. How do I redirect people that link direct to the old pdf to the new one. These pdfs are coming up very high in Google. I was hoping if I changed them to redirects Google would follow. Also for those that have a link in their web site to these pdfs it will be broken when I move them to the new url. Hello all, So I am doing site management, and I have a problem with a redirection that is going on. There is a directory in the root called venngo (http://url/vengngo/) however it redirects to a different page all together, so I removed the folder, uploaded a new one, and it still redirects. I have checked my cache and multiple machines, so I know it is not on my side. The only time my page works is if I physically add /index.php tot eh directory to make it (http://url/vengngo/index.php) What should I be looking for in the files for the website for a possible redirection script. Maybe htaccess? I went to a site for optimization & on review it told me my site had a re-direct, which was bad. Its been awhile since I tinkered with my site, so beats me where I put it. Can anyone help find out where it is? Newbie to this forum. Thanks. website is: kallico.net Thanks for any help on this, or anything else to help it get noticed more. Hello I'm redirecting pages using 301 redirect in my htaccess file, like redirect 301 "/servicesxxx.php" http://www.site.com/services.php but I have a page like this: www.somename.site.ca/indexpage.php I tried putting the whole thign in there but it doesn't work. How can I successfully redirect that page? I have a situation where I snd peoplle to a different page to do a download and I want them to be redirected back as soon as the download completes. Is there a command for that? Hello all, I just joined the forums and am not very experienced in HTML at all but have a question that I hope you guys can help me with. So here it goes. I have a site called doodletype.com and when I am working on it I would like that domain and all of its directories to be redirected to one page which would be a page that tells people coming to the site that it is under construction. I've seen this done on many other pages but I can't seem to find out how to do it properly. I can get the URL to redirect correctly when all the user types in is doodletype.com but when the user types in something like doodletype.com/Directory it redirects this URL to a URL like this newsite.com/index.html/Directory. So it appends the /Directory to the end of the redirect URL which then creates the wrong URL and a page cannot be found error. Where as I would like to find out some way of ignoring anything the user puts past doodletype.com/ and just always no matter what the user puts past doodletype.com/ redirect to only newsite.com/index.html and not newsite.com/index.html/Directory. Any help would be great and thanks for your time. N00B here with very limited html code experience, but thought this looked like a great resource. I have a page, that various users hit somewhat infrequently. I have created a new location and have placed code within the page to forward a user to the sites new location. In the example below, I want the user to be redirected to the new location, but I want them to have the option to add the new URL to their favorites from the initial page. How can the code below be manipulated to add the new URL to their favorites instead of the initial page? I hope this makes sense and isn't too dumb a question. Thanks in advance!! <HTML> <HEAD> <META HTTP-EQUIV="refresh" content="10;URL=http://collaborate/sites/test"> <TITLE>We have moved to a NEW location.</TITLE> </HEAD> <BODY> This site has moved to a new location; please update your favorites/bookmarks. You will be redirected to new location in 10 seconds. <FORM> <INPUT TYPE = "button" VALUE = "Add This Site To Your Favorites" onclick = 'window.external.AddFavorite(location.href,document.title);'> </FORM> Please contact XXXXXX with questions or concerns. </BODY> </HTML> Hello, I'm using Google Apps and here's what I'd like to do with an html code. Right now I have a link that goes to "mail/", inside that mail folder is an index.html. Now, within that html code I'd like to redirect to "http://mail.google.com/a/layercakeclan.com/", but make it appear as though the URL is still "LayerCakeClan.com/mail". I know a lot of free url redirection services use this method. Can someone tell me how to do this? Hello, I'm currently hosting my website through another domain but am using a .com which forwards you to my site. Example; go to www.example.com and it takes you to www.bluered.com/example/main.html . The problem is that when searching through Google, it is not recognizing my .com name, only the hosting url. I attempted a Java 301 redirect which I applied to the body section of my HTML but I am not sure if it worked. This is the code I entered: <% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %> I replaced the "http://www.new-url.com/" with my .com name and placed this code in the code on my landing page. Can anyone give me some suggestions, tips? It would be greatly appreciated. Thank you Hi! I am currently building a site that is quite heavy with jQuery. I would like to be able to detect if people are using JS and if not re-direct them to an alternate version of the site that doesn't use JS. I have tried the code: HTML Code: <noscript><meta http-equiv="location" content="URL=mysite.com/nojavascript" /></noscript> In the head of the document. but this doesn't seem to work. Any suggestions greatly appreciated! Thank you! Hey all, I am so close o having this form done. I am noob at HTML and PHP (all languages for that matter). I did get some help and was able to have the form work correctly, send it to my php, and send the email... The only thing I am lacking is having the page redirect. I searched the forum and found some relative information, but it seems that I have it correct? Yet, it is still not working. I assume it can be done on the HTML side or the PHP side. I see where it seems to be in the HTML...but no luck. Code: <html><body> <!-- Start Form --> <form method="post" action="sendmail.php"> <table border="0" cellspacing="0" cellpadding="0" width="235" align="center"> <tbody> <tr> <td height="3"></td></tr> <tr> <td style="font-family: Tahoma; color: #c70001; font-size: 8pt" align="center"></td></tr> <tr> <td class="form_text">Full Name :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Name" type="text" name="Name" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Email :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Email" type="text" name="Email" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Phone :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="Phone" type="text" name="Phone" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Zip code moving from :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="ZipFrom" type="text" name="ZipFrom" autocomplete="OFF" /></td></tr> <tr> <td class="form_text">Zip code moving to :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="ZipTo" type="text" name="ZipTo" /></td></tr> <tr> <td class="form_text">No. of bedrooms :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="NumBedrooms" type="text" name="NumBedrooms" /></td></tr> <tr> <td class="form_text">Move date :</td></tr> <tr> <td height="24" valign="top" align="left"><input id="MoveDate" type="text" name="MoveDate" /></td></tr> <tr> <td class="form_text">How did you hear about us? </td></tr> <tr> <td height="24" valign="top" align="left"><input id="Referral" type="text" name="Referral" /></td></tr> <tr> <td height="4" valign="top" align="left"></td></tr> <tr> <td valign="top" align="left"> <table border="0" cellspacing="0" cellpadding="0" width="217"> <tbody> <tr> <td height="8" valign="top" align="right"><input value="Website Contact :: Big League Movers" type="hidden" name="subject" /> <input value="beaushaw@bigleaguemovers.com" type="hidden" name="recipient" /> <input value="http://www.bigleaguemovers.com" type="hidden" name="redirect" /></td></tr> <tr> <td height="32" valign="top" align="right"><input value="submit" type="image" src="images/submit.jpg" /></td></tr></tbody></table></td></tr></tbody></table><!-- End Form --> </form> </body></html> You can also check out the page at http://www.bigleaguemovers.com/jj.testform.html Thank you Hi, I've designed an email html form that duplicates the search options a user tried on a CT website so those details can be sent by email to specific indviduals for investigation. The form works perfectly, apart from in IE7 where the email field is not filled in but this, I believe, is diown to IE as it works perfectly when using Google Chrome. <form action="email addresses here" enctype="text/plain" name="EmailTestForm"> Rest of the form here, including check box and radio button functions and ends with <input type="submit" value="Submit"> <input type="reset" value="Cancel"> What I would also like it to do is then send the user to a Thank You page, where I can then put a link to the site's homepage (this I know how to do). I've tried many options but none of them work, even the ones on HTML sites that say "this one works". At the moment the form is using the users' own default mail client. The idea is, eventually to get the site hosting to use Perl or some other such to enable the site to submit the form. At that stage I can replace the form action with the URL and that should do the trick. However at this stage I would like the form to both submit the details by email and redirect to another page. As I'm only entering and creating page content, is there a way to do this w/o having to enter any CSS or HTML in the <head> (I don't have access to that level of the site)? Hope you can help. Many thanks Addendum: Solved the IE problem. Removed the Method="POST" element of the tag. Yay!!!!!!!!!!!!!!! Only problem now is that the form looks pants in IE. I'm working on a website for a organization I belong to. It's quite simple - a few html pages with posts handled by perl. I'm writing a registration script for them, and need to do the following: Currently when registration is confirmed, they write to their userdatabase and email out a confirmation. But payment is all handled via paypal. They've been relying on users to click a link at the bottom to go to paypal to conduct the transaction, but users can be not-so-smart sometimes. Many have thought that payment was taken care of, and they didn't need to worry about it, and hence, we've been getting a lot of non-payment. I'd like to, after the confirmation where databases are written, etc., just have something like a meta refresh at the top of the page that will redirect them to paypal. But, paypal accepts its info via a post. How does one do such a refresh with a post command in it? Or is there another way? Hello, If I were to change my pages from thispage.html to thispage.php or this-page.html how would I make sure that the old page will redirect to the new one? |