![]() |
TFSEO Google Sitemap Generator (URL rewriting support)
Google's sitemap with the URL rewriting of TFSEO.
If you dont know TFSEO look at: https://vborg.vbsupport.ru/showthread.php?t=173738 All credit goes to Superjeff, TFSEO'S creator, and i hope he can include and improve this code to merge it seamlessly into TFSEO. READ CAREFULLY: ONLY WORKS WITH METHOD 2 OF TFSEO (MEDIUM), with URL STRUCTURE SET TO DIRECTORY (THE FIRST ONE) --------------------------------------- 1. Add this line to your htaccess rules: RewriteRule (.*)\.xml(.*) $1.php$2 [nocase] 2. Open sitemap.php and fill the required data. 3. Upload sitemap.php to the root of your forum. 4. Write in browser www.yourfoum.com/sitemap.php to generate the xml google sitemap. About the rewrite rule: What this does is it turns on the rewrite rule (allowing you to modify how URLs are handled, essentially) and adds the logic that allows a file.php to be intepreted as file.xml. This now means that if you put sitemap.xml into your browser you'll be viewing the output from sitemap.php and that's crucial because now when Google looks for sitemap.xml it's viewing live data from your PHP script. This means that your sitemap.xml file will never be inaccurate. So now you only must go to http://www.google.com/webmasters/too...um/sitemap.xml each you time you want to tell google to index the changes of your sitemap. The xml is generated by the php code on the fly so is always correct :) limitations: Writes only home, forums and threads urls (i think is enough for most uses). ----------------------------------- v1.1: Added parameters for Home, improved defaults value for frequency and priority. |
thanks installed :)
|
very nice, so i need to install TFSEO as well.
|
Can you explain me why the info about database is nesesary in this modyfication? Maybe im supersensitive, but this is a firs mod where i found sth like this.
|
Thanks!!!
I was searching this... |
Quote:
Anyway, although being a dirty code, is safe to use and works fine. |
Whats about this error|
Code:
XML Parsing Error: junk after document element |
Quote:
|
Quote:
|
Quote:
|
All times are GMT. The time now is 09:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|