Skip to:
Content
Pages
Categories
Search
Top
Bottom

URLs incorrectly using /wordpress/ (and the solution)

  • I have WordPress installed in http://example.com/wordpress/ but I changed my settings so that WordPress Site Address was set to http://example.com/. My WordPress home URL and all my pages/posts/categories/tags are loaded off the root directory (http://example.com/) so that the /wordpress/ directory is never visible in the URLs.

    But when I installed BuddyPress and activated the BuddyPress Default 1.2.7 WordPress theme, I noticed that all the URLs in the nav bar (Activity, Members, Groups, etc.) all use the http://example.com/wordpress/ URL.

    The problem is that the theme uses the site_url() function instead of the home_url() function which, unless I’m missing something, is what it should be using to be consistant with the WordPress settings.

    To fix the problem, I simply edited the header.php file for the BuddyPress Default 1.2.7 WordPress theme and replaced any occurrences of site_url() with home_url().

  • The topic ‘URLs incorrectly using /wordpress/ (and the solution)’ is closed to new replies.
Skip to toolbar