Getting WordPress to work inside a rails 3 application

I had a similar problem, but handled the VirtualHost configuration in a different way: Used an Apache mod_alias to redirect what for you is /home/blog/ to a path outside of /var/www/railsapp/public/ (e.g., /var/www/wordpress) Then, for that new hosted directory I had to declare PassengerEnabled off to avoid getting the standard rails error message. I’ve wrote … Read more

Change author permalink using htaccess?

it’s simpler to do this via your theme’s functions.php or a plugin rather than .htaccess: function wpse31040_author_rewrite(){ add_rewrite_rule( ‘author/([0-9]+)/?$’, ‘index.php?author=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse31040_author_rewrite’ ); make sure to visit the permalinks settings page after adding this to flush rewrite rules.

Rewrite rule that wp-login.php?action=register is left alone

I’m assuming that you’re working with one of the latest versions, but I used the latest 1.5.1. Without knowing how your specific Facebook Connect plugin works and why it breaks here’s what I’ve come up with. Short answer // bp-members/bp-members-signup.php ~ line 611 if ( defined( ‘BP_SKIP_REGISTRATION_REDIRECT’ ) and BP_SKIP_REGISTRATION_REDIRECT ) wp_redirect( ‘/?pagename=register’ ); And … Read more

WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required

use ths constants for set the install and main domain of WP define(‘WP_SITEURL’, ‘http://www.example.com’); define(‘WP_HOME’, ‘http://www.example.com/blog’); i think the htaccess is fine: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule> the index.php in the root has only an require to the file of the install: require(‘./wordpress/wp-blog-header.php’);

Redirection with a wildcard

In your wp-config.php Just put this rule in there: define(‘WP_HOME’,’http://www.yourdomain.com’); define(‘WP_SITEURL’,’http://www.yourdomain.com’); Put it right above: /* That’s all, stop editing! Happy blogging. */