mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Switched sitemap.txt to use dlib.net
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403378
This commit is contained in:
parent
9fea3bc470
commit
65457448bd
@ -161,7 +161,7 @@ makedocs ()
|
|||||||
|
|
||||||
echo Generating sitemap
|
echo Generating sitemap
|
||||||
cd docs/web || report_failure
|
cd docs/web || report_failure
|
||||||
find . -name "*.html" | awk '{ print "http://dclib.sourceforge.net" substr($1,2)}' > sitemap.txt
|
find . -name "*.html" | awk '{ print "http://dlib.net" substr($1,2)}' > sitemap.txt
|
||||||
|
|
||||||
# make the main index have a 301 redirect. Use php to do this
|
# make the main index have a 301 redirect. Use php to do this
|
||||||
echo '<?php if ($_SERVER["SERVER_NAME"] != "dlib.net") { header("Location: http://dlib.net/", true, 301); exit; } ?>' > index.php
|
echo '<?php if ($_SERVER["SERVER_NAME"] != "dlib.net") { header("Location: http://dlib.net/", true, 301); exit; } ?>' > index.php
|
||||||
|
Loading…
Reference in New Issue
Block a user