140 likes | 302 Views
What I hate about you. things people often do that hurt their Web site’s chances with search engines. Frames. Some search engines have trouble getting through the frame- definition or frameset page to the actual Web pages
E N D
What I hate about you things people often do that hurt their Web site’s chances with search engines
Frames • Some search engines have trouble getting through the frame-definition or frameset page to the actual Web pages • If the search engine gets through, it indexes individual pages, not framesets • You can’t point to a particular page in your site • Linking campaigns
More issues with Frames • Pay-per-click campaigns • Placing your products in shopping directories • If your site is built on Frames there are things you can do to help the search engines
iFrames • iframeis an inline floating frame • It has similar problems to regular frames. In particular, some search engines don’t see the content in the iframe, and the ones that do index it separately.
Fixing Invisible Navigation Systems • If the navigation system is created in the browser, it’s probably not visible to a search engine • Java applets • <applet code=”MenuApplet” width=”160” height=”400”archive=”http://www.yourdomain.com/menu.jar”> • JavaScripts • Adobe Flash
Turning off scripting and Java • Choose Tools➪Internet Options from the main menu • Click the Security tab. • Click the Custom Level button • Select the Microsoft VM➪JavaPermissions➪Disable Java option button • Select the Active Scripting➪Disable option button • Click the OK button and answer Yes in the message box • Click the OK button again in the Internet Options dialog box
Reducing the Clutter in Your Web Pages • Simple is good; cluttered is bad • JavaScripts generally should be placed in an external file — a tag in the Web page “calls” a script that is pulled from another file on the Web server • They’re actually safer outside the HTML file • They’re easier to manage externally • The download time is slightly shorter • They’re easier to reuse • Doing so removes clutter from your pages
Write to remove problemcode • In an external text file, type this text • <!--document.write(“”)//--> • Grab the entire code you want to remove from the HTML page and then paste it between the following quotation marks • document.write(“place code here”) • Save this file and place it on your Web server • Call the file from the HTML page by adding an src= attribute to your <SCRIPT> tag to refer to the external file, like this • <script language=”JavaScript” src=”/scripts/navbar.js”type=”text/javascript”></script>
Use external CSS files • Here’s how to remove CSS information from the main block of HTML code. Simply place the targeted text in an external file — everything between and including the <STYLE></STYLE> tags — and then call the file in your HTML pages by using the <LINK> tag, like this: • <link rel=”stylesheet” href=”site.css” type=”text/css”>
Other Ideas • Move image maps to the bottom of the page • Don’t copy and paste from MS Word
7 things to avoid • The Web browser requests a Web page. • The Web server sends a message to a database program requesting the page • The database program reads the URL to see exactly what is requested, compiles the page, and sends it to the server • The server reads any instructions inside the page • The server compiles the page, adding information specified in server side includes (SSIs) or scripts • The server sends the file to the browser
problems searchbots have with pages • Dynamic pages often have only minor changes in them • The search engines are concerned that databased pages might change frequently • Searchbots sometimes get stuck in the dynamic system • Hitting a database for thousands of pages
Avoiding Things • Find out if the database program has a built-in way to create static HTML • Modify URLs so they don’t look like they’re pointing to dynamic pages • Use a URL rewrite trick — a technique for changing the way URLs look Different servers have different tools available; mod_rewrite, for instance, is a tool used by the Apache Web server
Who wants a cookie? • If your Web site demands the use of cookies, you won’t get indexed. That’s all there is to it! The searchbot will request a page, your server will try to set a cookie, and the searchbot won’t be able to accept it. The server won’t send the page, so the searchbot won’t index it.