As “Hamilton” goes, so goes “Spamilton.”

The spoof show (that would be “Spamilton” — if you don’t know, now you know), which has been running on the Upper West Side since last summer, is moving to Midtown, just down the street from the Richard Rodgers Theater (the room where it happens — “Hamilton,” that is).

And that’s not all. A second production of “Spamilton” is already running in Chicago, where “Hamilton” opened in October. And a third “Spamilton” is preparing to open in Los Angeles, where “Hamilton” is to begin performances in August; this “Spamilton” is to tour, as “Hamilton” is doing.

“We’re having fun, and making people laugh,” said Gerard Alessandrini, the creator and writer of “Spamilton,” and before that of “Forbidden Broadway.”

“I had done ‘Forbidden Broadway’ for 30 years, and had a great time, and we were touring it around, and then ‘Hamilton’ came along,” he said. “It’s the biggest hit show since I came to New York, and it’s not only exhilarating, it’s also a good target — it’s very parody-able.”