Skip to content

Commit

Permalink
WebsitePath
Browse files Browse the repository at this point in the history
  • Loading branch information
lincanbin committed Nov 15, 2014
1 parent 6d6853e commit 20a0be2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
include(dirname(__FILE__) . '/common.php');
header("Content-Type: text/plain");
?>User-agent: *
Disallow: /dashboard/
Disallow: /favorites
Disallow: /favorites/
Disallow: /json/
Disallow: /login
Disallow: /manage
Disallow: /new
Disallow: /notifications
Disallow: /register
Disallow: /reply
Disallow: /settings
Disallow: /tags/following
Disallow: /tags/following/
Disallow: /users/following
Disallow: /users/following/
Disallow: /upload_controller
Disallow: <?php echo $Config['WebsitePath']; ?>/dashboard/
Disallow: <?php echo $Config['WebsitePath']; ?>/favorites
Disallow: <?php echo $Config['WebsitePath']; ?>/favorites/
Disallow: <?php echo $Config['WebsitePath']; ?>/json/
Disallow: <?php echo $Config['WebsitePath']; ?>/login
Disallow: <?php echo $Config['WebsitePath']; ?>/manage
Disallow: <?php echo $Config['WebsitePath']; ?>/new
Disallow: <?php echo $Config['WebsitePath']; ?>/notifications
Disallow: <?php echo $Config['WebsitePath']; ?>/register
Disallow: <?php echo $Config['WebsitePath']; ?>/reply
Disallow: <?php echo $Config['WebsitePath']; ?>/settings
Disallow: <?php echo $Config['WebsitePath']; ?>/tags/following
Disallow: <?php echo $Config['WebsitePath']; ?>/tags/following/
Disallow: <?php echo $Config['WebsitePath']; ?>/users/following
Disallow: <?php echo $Config['WebsitePath']; ?>/users/following/
Disallow: <?php echo $Config['WebsitePath']; ?>/upload_controller
<?php
//Crawl-delay: 1
$CurHost = 'http://'.$_SERVER['HTTP_HOST'];
$CurHost = 'http://'.$_SERVER['HTTP_HOST'].$Config['WebsitePath'];
$ItemPerSitemap = 30000;
//sitemap 索引
echo 'Sitemap: ',$CurHost,"/sitemap-index.xml\n";
Expand Down
2 changes: 1 addition & 1 deletion sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
header("Content-Type: text/xml");
$Action = Request('POST','action',false);
$Page = intval($_GET['page']);
$CurHost = 'http://' . $_SERVER['HTTP_HOST'];
$CurHost = 'http://' . $_SERVER['HTTP_HOST'].$Config['WebsitePath'];
$ItemPerSitemap = 30000;
?><?xml version="1.0" encoding="UTF-8" ?>
<?php
Expand Down

0 comments on commit 20a0be2

Please sign in to comment.