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.
I’ve never heard of anyone trying this and I’m wondering about pitfalls and whether or not it’s even possible.
Thanks!
D
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.
I use mod_rewrite on my Drupal site. Here’s an example I use to redirect users to
www.earldouglas.com
when they accessearldouglas.com
:You could try something like the following: