Once you have created a Google™ sitemap (sitemap.xml), you also might want to show the end result to your users to help them navigate your site or let other search engines know about your most important pages. Freesitemapgenerator.com has created a small PHP script that you can install on your site by simply including it on your "sitemap.html" page. Installation Follow the next 3 steps and you will have it running in just a few minutes Step 1: Copy the script Obviously, you must copy the script first. Just copy and paste the following to a file named sitemap.php and put it on your server. Step 2: Create a cache file By default, all <TITLE> are read from your webpages. To minimize traffic (and speed up things) we cache the results for 24 hours. You must create this cache file first. Create an empty file on your webserver (in the same directory that the sitemap.xml and sitemap.php files are in) and name it sitemap.cache. Set the permission so, that the webserver can write to it. chmod 666 sitemap.cache is the unix way to do it, if you use an FTP client you can probably do the same. Step 3: Configure the script Open the sitemap.php file in an editor and check the config lines. You can change a few things very easily. The defaults are probably fine for most sites, but just check them. Finally, test it and make use of it Now you have done all this, open the sitemap.php in your browser (http:// domain.com /sitemap.php). You will see that there is no layout in the script other than <h2>, <ul> and <li> tags. You now can include it in your actual sitemap.html file or any other page you want it on by doing: Sitemap for freesitemapgenerator.com :<br> <? include "sitemap.php"; ?> Good luck. Courtesy: http://www.freesitemapgenerator.com/xml2html.html
Tuesday, July 8, 2008
Convert XML Sitemap to HTML
·
Labels: SEO Tools, Website/ Blogging
Subscribe to:
Post Comments (Atom)
Check out my new blog:
Translation
Recent Posts
Who's Online?
Pageviews Today
About Me
嗨,我是花,居住在印度兴奋的Windows,Linux中国的外籍人士和所有高科技的东西
Receive updates for free
Labels
- Tips 'n' Tricks (171)
- Windows Vista (105)
- Website/ Blogging (91)
- General (88)
- Windows XP (84)
- Internet (59)
- Windows 7 (54)
- Software (43)
- Mobile-Tips and Tricks (35)
- Review (28)
- Security (28)
- SEO Tools (25)
- iPhone (17)
- Linux (14)
- Windows Mobile (14)
- mac (13)
- Mobile (12)
- MS Office (7)
- Hardware (6)
- Windows 98 (6)
- Zune (6)
- Games (4)
- Mobile Reviews (3)
- Disclaimer (2)
Blog Archive
- June (2)
- May (2)
- August (2)
- July (1)
- June (1)
- May (2)
- April (4)
- March (4)
- February (1)
- December (2)
- November (1)
- November (1)
- June (2)
- May (28)
- April (54)
- March (83)
- February (60)
- January (57)
- December (48)
- November (17)
- October (28)
- September (22)
- August (19)
- July (34)
- June (59)
- May (1)
- April (5)
- March (22)
- February (5)
- January (31)
0 comments:
Post a Comment