ESP8266: Interfacing MAX485 TTL-to-RS485 on serial port
You can't redefine pins on the ESP8266. You can, though, use SoftwareSerial to emulate a serial port. There's plenty of examples.
Also you need to use the MAX3485 on 3.3V devices. The MAX485 is for 5V devices.