Links on sub-directory-installed WordPress coming up as broken
I have my WordPress installed to a sub-directory on the server root. This plugin is detecting many links in my blog as broken when they are not. What's happening is it's throwing the sub-directory in front of the permalink, which is incorrect. It's happening on links like this:
<a href="#somePageAnchor">asdf</a>
-
onlinemoneydiscussions .com commented
Yes. He is right. This plugin detects anchor links as broken. Kindly fix this issue asap..
-
Steven Vachon commented
I just updated to v1.5 of your plugin and, this is now magically fixed. It may have been fixed earlier, but I just did a "force re-check" and everything worked out fine.
-
Steven Vachon commented
This problem is NOT occurring ON MY SITE... JUST in your plugin's ADMIN PAGE.
This is STILL broken and you don't seem to be taking notice to my descriptions. Please advise!!!
-
Steven Vachon commented
The actual blog post just has href="#anchor" ... but within BLC, it's showing up with these folders added. My WP settings appear correct, and everything else on my site works correctly. I'm 99% sure the problem is with the plugin itself.
-
AdminJānis Elsts (Admin, W-Shadow.com) commented
No, I'm not hiding the sub-directory on my site.
If you're still running into problems even with plugins deactivated, I would suggest that the problem is with your WP configuration, not a plugin. Plugins can't affect your site when they're inactive.
Do the "WordPress address" or "Site address" settings (in Settings -> General) have the hidden directory in them?
-
Steven Vachon commented
Are you hiding the sub-directory with a mod_rewrite, or similar? All of my links with a hash anchor are adding this hidden dir. Even with all plugins deactivated, I still run into this problem.
-
AdminJānis Elsts (Admin, W-Shadow.com) commented
I can't reproduce this bug. I have a blog installed in a subdirectory and when I add an anchor link to a post, BLC parses the URL correctly (i.e. doesn't lose the subdirectory name).
Some background info: When BLC encounters an #anchor or link in a post, it basically just runs get_permalink() to retrieve the post URL and tacks the anchor onto the end. Assuming that get_permalink returns the correct URL, I don't see how it could end up with the subdir stripped out.
-
Steven Vachon commented
This is a BUG, not a feature request. ~Please~ fix this asap
-
Steven Vachon commented
Broken Link Checker thinks these are broken and in the "Broken Links" list, their URLs are being incorrectly displayed as:
http://domain.com/SUBDIR/post-name/#anchor... when they should be displayed as:
http://domain.com/post-name/#anchor