2015-07-31
使用 python + django 做一個大數據網路平台
你是不是想知道使用 python + django 做一個大數據網路平台可以做到什麼樣的程度?
我發現 這裡 比異鳥 (http://www.biyibird.info) 有個網站,它使用了 python + django + search engine + jquery
很輕鬆的從龐大數據庫內抓取必要的資料,並減少資料庫的負擔。
想寫好一篇作文最佳的捷徑就是多看些文章
想學 python 的人最好的方式就是多參考一些網站,這個網站大家可以多多瀏覽、瞭解、參考看看
2015-07-29
Using .htaccess to redirect from one domain to another
If you want to redirect your www.from.com to www.to.com
[.htaccess]
in your root directory(or sub-directory, according to ur needs), create an .htaccess file, and input content below.
[例子]
RewriteEngine On
# 從 from.com 轉到 www.to.info
RewriteCond %{HTTP_HOST} ^from\.com$ [NC]
RewriteRule ^(.*)$ http://www.to.info/$1 [L,R=301]
# 從 www.from.com 轉到 www.to.info
RewriteCond %{HTTP_HOST} ^www\.from\.com$ [NC]
RewriteRule ^(.*)$ http://www.to.info/$1 [R=301,L]
[try]
go to browser URL input http://www.from.com/account/login and then you will be redirected to http://www.to.com/account/login
URI is corrected be mapped.
[.htaccess]
in your root directory(or sub-directory, according to ur needs), create an .htaccess file, and input content below.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.from.com$ [NC]
RewriteRule ^(.*)$ http://www.to.com/$1 [R=301,L]
[例子]
RewriteEngine On
# 從 from.com 轉到 www.to.info
RewriteCond %{HTTP_HOST} ^from\.com$ [NC]
RewriteRule ^(.*)$ http://www.to.info/$1 [L,R=301]
# 從 www.from.com 轉到 www.to.info
RewriteCond %{HTTP_HOST} ^www\.from\.com$ [NC]
RewriteRule ^(.*)$ http://www.to.info/$1 [R=301,L]
[try]
go to browser URL input http://www.from.com/account/login and then you will be redirected to http://www.to.com/account/login
URI is corrected be mapped.
訂閱:
文章 (Atom)