Forum Moderators: phranque
Home : http://www.mydomain.com
SiteUrl : http://www.mydomain.com/wordpress http://www.mydomain.com on /home/www. The http://www.mydomain.com/wordpress is just a wordpress settings, that seems to cause me trouble for redirecting http://sub.mydomain.com on /home/www/sub, and an other domain http://www.domain2.com on /home/www/domain2. - RedirectMatch 301 /(.*) http://blog.mydomain.com/$1 : it redirects everything including my other sites, so this is not the solution. - RedirectMatch 301 /wordpress/(.*) http://blog.mydomain.com/$1 : it partially works some links like "Home" are not redirected - Redirect 301 /2009/02/allo/ http://blog.mydomain.com/2009/02/allo/ - RedirectMatch 301 /(.*) http://blog.mydomain.com/$1 : it failed also (but honestly I don't remember why, I've done too many try :P ) <IfModule mod_rewrite.c>
RewriteEngine On
# use RewriteLog to debug problems with your rewrite rules
# disable it after you found the error our your harddisk will be filled *very fast*
# RewriteLog "/var/log/apache2/rewrite_log"
# RewriteLogLevel 2
# Rewrite with redirect moved permanently
RewriteCond %{HTTP_HOST} ^www\.jnicolas\.name$
RewriteRule ^/(.*) http://blog-quebec.jnicolas.name/$1 [R=301,L]
</IfModule> RewriteCond %{REQUEST_URI} !.*wp-admin.* http://www.mydomain/year/month/post_title http://www.mydomain/wordpress/#*$!x and '#*$!x' could be wp-admin, wp-login ... RewriteCond %{REQUEST_URI} !/wordpress/