Title: drewrawitz's Replies | WordPress.org

---

# drewrawitz

  [  ](https://wordpress.org/support/users/drewrawitz/)

 *   [Profile](https://wordpress.org/support/users/drewrawitz/)
 *   [Topics Started](https://wordpress.org/support/users/drewrawitz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/drewrawitz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/drewrawitz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/drewrawitz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/drewrawitz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/drewrawitz/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Relevanssi 3.6.2 PHP Error](https://wordpress.org/support/topic/relevanssi-3-6-2-php-error/)
 *  Thread Starter [drewrawitz](https://wordpress.org/support/users/drewrawitz/)
 * (@drewrawitz)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/relevanssi-3-6-2-php-error/#post-9625233)
 * Awesome, that did it. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] ERROR: s2Member unable to locate WordPress directory.](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/)
 *  Thread Starter [drewrawitz](https://wordpress.org/support/users/drewrawitz/)
 * (@drewrawitz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/#post-5062458)
 * In case anyone comes across this issue, I found a solution that will work for
   now.
 * Add this to your **.htaccess** file
    `SetEnv WP_DIR /path/to/wordpress`
 * Hope that helps someone.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Can't get posted_data](https://wordpress.org/support/topic/cant-get-posted_data/)
 *  Thread Starter [drewrawitz](https://wordpress.org/support/users/drewrawitz/)
 * (@drewrawitz)
 * [12 years ago](https://wordpress.org/support/topic/cant-get-posted_data/#post-5103402)
 * Thanks so much Rob, that helps a lot.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] ERROR: s2Member unable to locate WordPress directory.](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/)
 *  Thread Starter [drewrawitz](https://wordpress.org/support/users/drewrawitz/)
 * (@drewrawitz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/#post-5062391)
 * Just wanted to follow up and see if there was any kind of solution that would
   at least get my stylesheets to show.
 * Thank you very much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions] ERROR: s2Member unable to locate WordPress directory.](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/)
 *  Thread Starter [drewrawitz](https://wordpress.org/support/users/drewrawitz/)
 * (@drewrawitz)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-s2member-unable-to-locate-wordpress-directory/#post-5062338)
 * So my folder structure looks like this:
 * – content
    – wordpress index.php wp-config.php
 * The wordpress folder contains all the core WP files, and inside of content I 
   have my themes folder and plugins folder.
 * Inside of my wp-config file I have this:
 *     ```
       if (!defined('WP_SITEURL')) {
       	define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
       }
       if (!defined('WP_HOME')) {
       	define('WP_HOME',    'http://' . $_SERVER['SERVER_NAME']);
       }
       if (!defined('WP_CONTENT_DIR')) {
       	define('WP_CONTENT_DIR', dirname(__FILE__) . '/content');
       }
       if (!defined('WP_CONTENT_URL')) {
       	define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content');
       }
       ```
   
 * Regarding the code used in the must-use plugin, I pasted in exactly what was 
   in that forum thread:
 *     ```
       <?php
       add_action("ws_plugin__s2member_after_loaded", "s2_hacks"); function s2_hacks()
           {
               $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["s2o_url"] = site_url("/");
           }
       ?>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)