Redirect Your URL Using META TagGet Web Design Tips and Tricks on mps-web-design.com. Redirect Your URL Using META Tag topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
There are many occasions when you wish to display your URL in the form yourdomain/display.html but would like, instead, to direct visitors to another URL, say some-other-domain/best-mouse-trap.html. For example, you are promoting an affiliate program with URL your-merchant-URL/sales-page/your-affiliate-code, and you think that the URL is too long, or you want to hide the fact that it is an affiliate link, or you want to prevent people from stealing your affiliate commission, you could use this technique. You could even check how many people have clicked on your affiliate link, by checking the number of clicks of the displayed URL before it is redirected, from your Web site log. Here is another example. You are using a tracking software, or a tracking company, to track your advertisement. Usually, the tracking URL will be of the form your-tracking-URL/.../tracking-?blah-blah or tracking-company-URL/.../tracking-?blah-blah. You want to use your own domain name or you do not want others know that you are tracking the ad. You could use the URL your-URL/your-sales-description which redirects visitors to the tracking URL. Knowledge of technique of redirecting URL will give you a lot of, among other benefits, flexibility. Here is how to do it with META tag... Create the page, "display.html," with the following META tag between the HEAD and /HEAD tags in the HTML codes... META http-equiv = "refresh" content = "0; URL = some-other-URL/best-mouse-trap.html" without any other content (if you wish, you could include the title "World's Best Mouse Trap" between the TITLE and /TITLE tags, to show that this page is about mouse trap). Upload the page "display.html" to the root directory of your Web site. With that, when visitors click on the link your-URL/display.html, they will be redirected to some-other-URL/best-mouse-trap.html. Please note that for the URL some-other-URL/best-mouse-trap.html in the above META tag, and other URLs through out the rest of the article, you should include the "http" protocol which have been omitted. The following variation of the above method will give you a neater way of displaying your URL, namely, without using the ".html" extension in your displayed URL... First create a sub-directory, say "best-mouse-trap" in the root directory at your Web site. Instead of naming the Web page created above as display.html, name it as index.html. Upload this "index.html" file into the sub-directory "best-mouse-trap". Then, when your visitors click on the URL your-URL/best-mouse-trap they will be redirected to some-other-URL/best-mouse-trap.html. Go Up Strong! - Increase Your Vertical and Teach Yourself to Dunk in a Matter of Days using this Revolutionary New System! Learn How To Speak Spanish. - A 31-Day Course That Shows You How to Communicate in Spanish Using Thousands of Spanish Words You Already Know. Some simple suggestionsWell I don't consider myself an expert, I do have experience with working with larger datasets and there are a couple of things that I always do to keep queries performing well. Optimize Queries with EXPLAIN
Optimizing joinsSingle sweep what?
Why is this important? Imagine a main table - tableA - with 80,000 rows of data. This table has a corresponding n:n table that maps entries in tableA with a locations table. A query could be written as: SELECT tableA.*, locations.location from tableA Left Join tableA2locations on tableA2locations.tableA_id = tableA.id Left Join locations on tableA2locations.location_id = locations.id where locations.location = 'sometown' Keeping the above quote in mind, MySQL will read a row from the first table and join the corresponding data from the joined tables for that row and then sweep thru the rest of the data, joining as it goes along. This leads us into the following section. Number of rows needed to execute a query
From the above, you can determine that for a query on tables that have not been properly indexed, a join can quickly become unwieldy when dealing simply with three tables with records in the thousands (1000*1000*1000 = a slow query). See HackMySQL for a good example of this. Reducing the number of rows needed to execute a querySo beyond indexing properly for joins, you can still end up with a query that runs in a way that causes a bottleneck. Taking our example from above, imagine that we use a where clause that limits the tableA selection to half ( SELECT tableA.*, locations.location from tableA Left Join tableA2locations on tableA2locations.tableA_id = tableA.id Left Join locations on tableA2locations.location_id = locations.id where locations.location = 'sometown' and tableA.foo = 'bar' This starts us out with 40,000 rows of tableA data to examine. If there are a further 2000 rows from tableA2locations, thats 800,000 rows of data. Not astronomical, but significant. If this was a 3 or 4 table join, things could get ugly. What to do? The answer may be obvious to some: select first with the most limiting table: SELECT tableA.*, locations.location from locations Left Join tableA2locations on tableA2locations.location_id = locations.id Left Join tableA on tableA2locations.tableA_id = tableA.id where locations.location = 'sometown' and tableA.foo = 'bar' This starts us out with 1 selection from the locations table, then 2000 from tableA2locations. If the join between tableA2locations and tableA is indexed correctly, we are then left with an index join based on ID, rather then having to initially select 40,000 rows from tableA as in the previous example. When I first started programming, it made sense to me to select from the main table (tableA) and join the lookups. But once you add some data to the mix and start to play with For further reading on the topic, I always send people to HackMySQL when they ask, so for more tips and tricks, be sure to have a read thru the optimize section of that site. Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
More Articles:1. Graphic Design Can Make or Break Your Web Site By Peter Green We all want high impact graphics for our Web sites - Right.Sometimes it is easy just to pick a template that comes included with a site builder and or hosting package.There are also thousands of Free templates that you can download from the Internet.But for those of us who want full control of our design and graphics, it is first a matter of sitting down and choosing your site design and color scheme.Your site theme, design or layout will play a major part in the size and number of graphi… 2. Independent Consultants Take Over Web Design Whether you are a web designer, or have worked with web design vendors, the web design business has changed greatly over the last few years. While there has been great change in this marketplace, there are a few main streams which are developing, most of which are positive trends for the independent web consultant.Larger Fortune 500 firms now have handed most of the responsibility for web work to their internal Information Technology (IT) depts. While marketing continues to have a say, IT will m… 3. If It's Done It's Done for: Make Your Website Part of Your Business before You Build Make your small business website into an ongoing resource for visitors and an aid in marketing your business, products, services and people by avoiding the 'Its done!' trap.Web sites are an Ongoing Part of Business.All too many small business owners build a web site that is considered complete once the final copy is placed. Do not stop there, if you really want to make your investment into the Web part of a profitable marketing solution, you need to ensure that people return to your site, refer … 4. Logo Designs on the Go Logo sets up an identity and name for the business that aims to be remembered. It is something that a business really needs to have to instill in the customers a sense of belongingness and authenticity of business. Your business logo should contain new colors, casual and fun look and a uniqueness that is completely you own. In that way you can be assured that your logo will represent your business well among customers and other businesses. And rest assured of the advantages that your business c… |
||||