Preheat the oven to 400°F (200°C).
Bring a large pot of salted water to a boil and cook the rigatoni according to package directions until al dente.
Reserve 1/4 cup of the pasta cooking water, then drain the pasta in a colander and return the hot pasta to a large bowl.
Add the pesto, crushed tomatoes, and enough reserved pasta water to make a slightly saucy mixture; stir until evenly coated.
Spray a 9×13-inch baking dish with nonstick spray and spread half of the pasta into the dish. Sprinkle with half of the shredded mozzarella.
Top with the remaining pasta and sprinkle the rest of the mozzarella evenly over the top.
Bake for about 20 minutes, until the cheese is melted and bubbly.
Remove from the oven and garnish with chopped fresh basil before serving.