Problem with relative links on subdirectory install
-
I have two wordpress sites on one domain. One is installed at the root level, another is in a subdirectory.
sites:
http://www.swanmountainoutfitters.com
AND
http://www.swanmountainoutfitters.com/glacierMy problem is that on the /glacier install all relative links point to the root install. The pages and everything work fine, it’s just that any relative paths are going to the wrong place. Most of these are within the content itself. You see on the homepage of the glacier site a missing image and all of the links in the content are wrong. The parts of the URL after the initial “/” is correct, it’s everything before it that is wrong.
Example:
The image on the homepage currently points to:
http://www.swanmountainoutfitters.com/wp-content/uploads/swan_mountain_outfitters_glacier_division.jpgBut should be:
http://www.swanmountainoutfitters.com/glacier/wp-content/uploads/swan_mountain_outfitters_glacier_division.jpgAnyone have any ideas on what the problem might be? It seems like a simple functions file or htaccess modification would do the trick but after Googling this most of the morning and not finding any solution that works I’m resorting to asking my own question.
I understand that relative links aren’t the greatest so I don’t really need to be scolded for using them. I appreciate any help with this as I’ve honestly tried my best to figure this out on my own but I can’t seem to figure it out.
Thanks in advance.
- The topic ‘Problem with relative links on subdirectory install’ is closed to new replies.