Does anyone have experience simultaneously running a Drupal and WordPress site and redirecting some links from Drupal to WordPress

This is a really weird question and I apologize:

I’ve been asked if it’s possible not to import our blog from WordPress to Drupal but just keep it in WordPress as an archive and re-direct our users say from hostname/blog/… to hostname/wordpress/… when a URL matches the WordPress URL pattern.

Read More

I’ve never heard of anyone trying this and I’m wondering about pitfalls and whether or not it’s even possible.

Thanks!

D

Related posts

Leave a Reply

2 comments

  1. This looks like it should be pretty simple to do. I plan to take advantage of the mod_rewrite module for apache:

    We will just need to configure a .htaccess file to redirect URLs matching hostname/blog/pattern/ – where pattern fits a WordPress URL blog pattern.

  2. I use mod_rewrite on my Drupal site. Here’s an example I use to redirect users to www.earldouglas.com when they access earldouglas.com:

    RewriteCond %{HTTP_HOST} ^earldouglas.com [NC]
    RewriteRule ^(.*)$ http://www.earldouglas.com/$1 [L,R=301]
    

    You could try something like the following:

    RewriteCond %{REQUEST_URI} /blog
    RewriteRule ^(.*)$ /wordpress [L,QSA]