![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Apr 2011
Posts: 133
Thanks: 2
Thanked 13 Times in 10 Posts
|
Hi all. I want to create a sitemap for my wordpress website. I dont want to use a plugin for this because I am creating pages that do not exsit.. its a little compliated, but the pages are created on the fly with a dynamic page and change each time they are loaded - therefore a standard plugin will not work. Can I just create a txt file called robots.txt and upload it and in the file put all the pages on a seperate line i.e www.domain.com/page1 www.domain.com/page2 ??? |
| Get 3 premium WordPress themes FREE now... <<< CLICK HERE TO DOWNLOAD YOUR 3 FREE PREMIUM THEMES >>> ------------------------------------------------------------------------------------------- Want to change YOUR signature but don't know how? <<< GET YOUR FREE GUIDE >>> | |
| | |
| | #2 |
| HyperActive Warrior Join Date: May 2009
Posts: 176
Thanks: 24
Thanked 42 Times in 32 Posts
|
Robots.txt is completely different. Ignore that! You need a mydomain.com/sitemap.xml Use Create your Google Sitemap Online - XML Sitemaps Generator You can then edit the file in notepad to add or remove url's as you wish. Just follow the format. I hope that helps. Peter |
| | |
| | #3 |
| Active Warrior Join Date: Oct 2011
Posts: 68
Thanks: 1
Thanked 1 Time in 1 Post
|
?? you are mixing up 2 different things. Robots.txt is NOT a sitemap! be very careful with robots.txt, better not change/use it if you don't know what you are doing. As for the sitemap, it just needs to be in an xml format and yes you can do it by hand, but wouldnt recommend it. You should use the script that is creating the pages to also add those pages to your sitemap. Shouldn't be to hard.. |
| | |
| | |
| | #4 |
| HyperActive Warrior Join Date: Jan 2012
Posts: 146
Thanks: 0
Thanked 4 Times in 4 Posts
|
Robots.txt is entirely different from sitemap. You can just include the url of the sitemap in Robots.txt file. Having a robots.txt file in not mandatory.
|
| | |
| | |
| | #5 |
| Active Warrior Join Date: Jan 2012
Posts: 45
Thanks: 0
Thanked 1 Time in 1 Post
|
robots.txt in very important to business or company sites, you can use this file to restrict search engines to index your confidential part of you website.
|
| | |
| | #6 |
| HyperActive Warrior War Room Member Join Date: Apr 2011
Posts: 133
Thanks: 2
Thanked 13 Times in 10 Posts
|
Ahhh sorry guys, I wrote this post quite early and obviously wasnt thinking straight. I ment sitemap. Would it be ok to just create my own sitemap in a txt editor and save it with a .xml extension. In the sitemap would be www.domain.com/page1 www.domain.com/page2 and then just uploaded that to my domain i.e www.domain.com/sitemap.xml and then submit this to webmaster tools. I did hear that I had to write it like this: <loc>http://www.domain.com/page1</loc> Which one is correct? Also, do I need to include: <lastmod> <changefreq> <priority> and will it affect the SEO of the pages if I leave them out? Also one more thing.... do I need to start my sitemap with <url> and finish with </url> ?? |
| Get 3 premium WordPress themes FREE now... <<< CLICK HERE TO DOWNLOAD YOUR 3 FREE PREMIUM THEMES >>> ------------------------------------------------------------------------------------------- Want to change YOUR signature but don't know how? <<< GET YOUR FREE GUIDE >>> | |
| | |
| | #7 | |
| HyperActive Warrior Join Date: May 2009
Posts: 176
Thanks: 24
Thanked 42 Times in 32 Posts
| Quote: I include: <changefreq> <priority> But never bother with <lastmod> Peter | |
| | |
![]() |
|
| Tags |
| robotstxt |
| Thread Tools | |
| |
![]() |