我想将文件夹中的旧域(例如:olddomain.com/folder)重定向到新域的根目录(http://www.newdomain.com/)。
我使用以下代码修改了旧域文件夹中的htacess:
GoogleMap.prototype.initial = function (currentPolygonData) {
var self = this;
var triangleCoords = [];
if (currentPolygonData != null && currentPolygonData.length>0) {
triangleCoords = [];
for (var i = 0; i < currentPolygonData.length; i++) {
triangleCoords.push(new google.maps.LatLng(currentPolygonData[i].Lat, currentPolygonData[i].Lng));
}
}
var polyOptions = {
paths: triangleCoords,
strokeColor: '#bb4446',
fillColor: '#c37172',
strokeWeight: 0,
fillOpacity: 0.45,
editable: true,
draggable: true,
};
self.drawingManager = new google.maps.drawing.DrawingManager({
drawingMode: google.maps.drawing.OverlayType.POLYGON,
drawingControlOptions: {
drawingModes: [
google.maps.drawing.OverlayType.POLYGON
]
},
markerOptions: {
draggable: true
},
polylineOptions: {
editable: true,
draggable: true
},
rectangleOptions: polyOptions,
circleOptions: polyOptions,
polygonOptions: polyOptions,
map: self.map
});}
但它不起作用。
对我缺少的东西有任何想法吗?
谢谢!