linnou
11-01-2013, بتوقيت غرينيتش 10:19 PM
هى عبارة عن ملف فقط تضعه على الموقع و هو يولد خريطه تلقائيه XML
الخريطه مبرمجه للوردبريس و لكنها تصلح لاى موقع مع اجراء تعديلات
فقط غير ww.xxxxxxxxx.com الى رابط موقعك و ارفع الملف
ww.xxxxxxxxx.com.sitemap.php
رمز PHP:
<code style="white-space:nowrap"> <code>
<?php
require_once("wp-config.php");
header('Content-Type: application/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://[COLOR="Red"]www.xxxxxxxxx.com[/COLOR]/</loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
<?php
$sql = "SELECT ID FROM wp_posts order by ID desc ";
$result = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
?>
<url>
<loc>http://[COLOR="Red"]www.xxxxxxxxx.com[/COLOR]/?p=<?=$row['ID'];?></loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
<?php } ?>
</urlset>
<?
mysql_free_result($result);
?> </code> </code>
الملفات المرفقة
http://www.traidnt.net/vb/images/attach/txt.gif map.php.txt (http://www.traidnt.net/vb/attachments/609985d1320698579-map.php.txt) (700 بايت, عدد مرات المشاهدة 113 مرة)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
الخريطه مبرمجه للوردبريس و لكنها تصلح لاى موقع مع اجراء تعديلات
فقط غير ww.xxxxxxxxx.com الى رابط موقعك و ارفع الملف
ww.xxxxxxxxx.com.sitemap.php
رمز PHP:
<code style="white-space:nowrap"> <code>
<?php
require_once("wp-config.php");
header('Content-Type: application/xml');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://[COLOR="Red"]www.xxxxxxxxx.com[/COLOR]/</loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
<?php
$sql = "SELECT ID FROM wp_posts order by ID desc ";
$result = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
?>
<url>
<loc>http://[COLOR="Red"]www.xxxxxxxxx.com[/COLOR]/?p=<?=$row['ID'];?></loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
<?php } ?>
</urlset>
<?
mysql_free_result($result);
?> </code> </code>
الملفات المرفقة
http://www.traidnt.net/vb/images/attach/txt.gif map.php.txt (http://www.traidnt.net/vb/attachments/609985d1320698579-map.php.txt) (700 بايت, عدد مرات المشاهدة 113 مرة)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©