背景略过. 总结了一下,其实apache下的.htaccess写法和nginx的conf差别不大,大概就是这几点: 把前面的Redirect 30X改成rewrite 然后在结尾加上与301/302对应的词:302→redirect,301→permanent 根目录以^代替 每行结尾加上分号; url结尾不要有/,其余保持原样即可 示例: .htaccess Redirect 301 /count-time.html http://xiaohudie.net/tech/count-time.html nginx rewrite ^/count-time.html http://xiaohudie.net/tec... Read More
Tag Archives vps