Web Development Information |
|
PHP Redirect
A PHP Redirect automatically transfers a web user from one URL to another. For example, typing foo.com in the browser automatically transfers the user to another URL bar.com. The PHP Redirect command: Replace [some-url] with the URL where you want the redirection to take place. For example, header("location: ./version2/index.html"); =>redirect to "index.html" page in subfolder called "version2" header("location: http://www.yahoo.com"); =>redirect to a website called yahoo.com If PHP is not available, it's also possible to use other redirects: * HTTP Redirects Replace [time] with seconds. This will pause the browser for the specified number of seconds. Replace [some-url] with the target URL you want to redirect. For example, The above HTTP based redirect needs to be in the region of the HTML code. * JavaScript Redirects setTimeout("location.href='[some-url]'", [time]); Replace [time] with milliseconds. This will pause the browser for the specified number of seconds. Replace [some-url] with the target URL you want to redirect. For example, setTimeout("location.href='http://www.yahoo.com'", 5000); The above JavaScript based redirect can be either in the or region of the HTML code. Usually a PHP redirect is much more reliable than other form of redirects like HTTP redirect or JavaScript based redirects. For example a JavaScript redirect may not work if a user's browser settings has JavaScript turned off. The reason why PHP redirects will work no matter what settings users have on their browser is because PHP is server side script. It will not depend on browser settings that may affect JavaScript which is parsed on the client-side/user-side. About the Author You are free to use this article in its entirety as long as you leave all links in place, do not modify the content, and include the resource box listed above.
|
RELATED ARTICLES
How to Get a Better Web Site ROI Better Web Site ROI Ten Major Tips to Develop a Multilingual Web Site to Work If you are living in a country that its native language is something rather than English language, then you may like to develop your website to offer content in the language of your own country. You Don?t Have to be Amazon.com to Achieve 12% Conversion Rates! That's right. According to a recent study by Nielsen/NetRatings, Amazon.com converts 12.8% of its visitors into sales. Why Should Your Business Go O.N.L.I.N.E. Optimize your time. How much time each day must you devote to paperwork, scheduling and accounting? You strive to meet the needs of your clients, but when chained to the obligations of business management, it's just as important to make sure the doors stay open as it is to satisfy customers. By integrating your daily tasks and taking advantage of the amazing Web-based software solutions out there, you can make more time for clients and spend less time behind your desk. Do you work from home? When your business is online, you can manage your business any place you have a connection to the Internet Ebooks for Webmasters Internet has opened a whole new world for web developers and web designers who are looking to get their websites developed that are finally launched on the huge world of World Wide Web. Keeping that factor webmasters are the people who have to face a lot of problems mainly due to the entrance of new software, programming languages and viruses that are a real threat for the webmasters. Autoresponders Make You Look Like A Pro People like to get immediate responses to requests. Autoresponders are great for letting people know you are on the job and that their requests are being taken care of. These are much better than thank you pages. Why Your Business Needs a Website Even with the steady growth of the World Wide Web, many businesses do not have an online presence and some think that they do not need to have a presence at all. Build It and They Will Come Build it and they will come is not always true; you have to form a relationship with the company before you will get quality attendees or participants for a free service. Track Your Visitors, Using PHP There are many different traffic analysis tools, ranging from simple counters to complete traffic analyzers. Although there are some free ones, most of them come with a price tag. Why not do it yourself? With PHP, you can easily create a log file within minutes. In this article I will show you how! Should You Design Your Own Website? If you're anything like most small business owners, you probably think that web site design is expensive - possibly too expensive for you to justify the expense. If that's the case, then it can be tempting to just design your small business web site yourself. You have a computer, complete with Microsoft Frontpage, you have a copy of Photoshop - why pay a web designer when you could just do it yourself? From Concept to Website You've decided to create a website to market your products or services. More and more people start their information searches online, so having a website is the logical next step. But without web development skills or knowledge, how do you build and market a website? How to Handle Web Surfers Who Disabled JavaScript There are hundreds of millions of Web surfers today. Each of them uses one of multiple web browsers available now. You as a Webmaster create cool web pages that are full of graphic and JavaScript and look very impressive in modern web browsers like Internet Explorer or FireFox. But ask yourself: "How my cool web page will look like, if the web surfer use Linx browser (text based) or just disabled JavaScript support?" You may think that number of Linx browser users is quite small today and you can ignore them, but search engines spiders does not support JavaScript as well. You cannot ignore search engines in the modern world. How Web Templates Are Helping Online Businesses to MultiplyTheir Income Web templates by nature are created to aid and ease the strenuous process of a typical web development phase. Idea collection, analysis, research, design are just a small part of a bigger picture. It is no doubt with the availability of web templates, we can almost eliminate the need of research and initial analysis, although not entirely. Internet Marketing Website Promotion -The 7 Biggest Mistakes I See People Make With Websites! 1. Many people are not getting good or complete advice. Often for example people don't understand all the concepts of Internet Marketing and having a website so they simply pay to have a website developed. Often this website may look good but it falls far short in the area of being "search engine friendly". This is typically because many businesses that deal with the web are very one track focused. Web Site Optimization: How To Speed Up Your Web Site By Minimizing Your GIF and PNG Image Bit-Depth Are bloated images slowing down your web site and causing you lost business? Images comprise over 50% of the average web page so putting them on a diet is essential to improving web performance. One of the best ways to optimize GIFs and PNGs is to minimize the "bit-depth" or the number of colors within your images. How to Maximize the Value of Every Visitor to Your Website While most marketers are beginning to understand the critical importance of maximizing conversion rates, few are tracking or working to maximize another critical measurement of website effectiveness. Why Your Brick-and-Mortar Biz Needs A Website The internet has taken over our lives with a vengeance, and has changed the way many of us do business. More and more consumers are now doing their shopping online and, unfortunately, some business owners have felt the pinch. Do Dancers Need A Website? Dance is how you pamper your soul and satiate your creativity. Mesmerized and overwhelmed with the pleasure that the dancer relishes while dancing, often there are some practical aspects that tend to get overlooked. As a dancer you might think: Why do I need a website at all? There is nothing I have to advertize!" That is not really so. As a dancer myself, I discovered the amazing advantages of having a website. Improving Usability for Screen Reader Users Simply ensuring your website is accessible to screen reader users is unfortunately not enough to ensure these users can find what they're looking for in a reasonably quick and efficient manner. Even if your site is accessible to screen reader users, its usability could be so incredibly poor that they needn't have bothered coming to your site. Having a Portfolio on the Internet Can Help you Infiltate the Workforce If you're an up and coming graphic/web designer just out of university, you'll know it's quite hard to break into the workforce. You have to contact employers one by one, spend your time traveling and lugging your portfolio to their offices. Well, things have changed, and for the better let me tell you. Now you can make your own on-line portfolio on the Internet, and send its web page address to numerous design companies at once so they can all see your work easily. You don't even have to leave your house and organizations all over the world can access your work easily. |
home | site map |
© 2005 |