上周,我在一个网站上做了一次重新发布,今天我意识到,分阶段的子域被Google索引了。我想避免这个错误在未来,并找到错误的来源。
我假设它与.htaccess文件和缓存的重定向有关。
.htaccess文件的结构是这样的
# A bunch of 301 redirects
Redirect 301 /url https://stage.example.com/url
Redirect 301 /url1 https://stage.example.com/url1
Redirect 301 /url2 https://stage.example.com/url2
# Now the p