Multiple Domains, One Linode, Broken Permalinks

December 4, 2017 1.5k views
Apache Server Optimization Ubuntu 16.04

Hello all! I am attempting to setup two domains on one server, which is working fine for the first domain I set up, however the second domain is having issues with permalinks. I cannot get them setup properly and every thing I have tried in regards to adding Allow Override and Rewrite _____ to the .conf files all wind up redirecting the second domain to the first domain. Is there something wrong with the way I have the .conf files set up? Not sure how to proceed. The article below would have been perfect, if it wasnt deprecated

4 Answers

I’m not super familiar with Apache (nginx user), however…! I’ll try to mitigate some common mistakes.

Do you know what kind of redirect you’re getting? As long as your DNS records are correct (A for Ipv4 and AAAA for Ipv6) and not using any redirects on the DNS record then it’s an Apache server or WP settings problem. You should try to nail down if it’s actually Apache or WP that’s doing this as it’s easier to help then.

Also, if you got a permanent redirect, clearing cache is important as the web browser might be remembering your previous settings even if you change them on the server side.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!