Can't Redirect Dynamic URLs to WordPress
-
I am in the process of moving a site from Joomla to WordPress, I don’t want to do any direct migration of content since there is a lot of legacy content that we do not want, a fresh start for us.
The problem is the traditional HTAccess method of redirecting URLs using a 301 redirect doesn’t seem to work with Joomla since it is a database driven CMS that uses query strings for page names. (Something about the ? is giving me problems.)
I know I need to use some sort of mod-rewrite rules but can’t seem to get my head around the concept with what I have found on about 20 other pages. Could someone please provide me with an example HTAccess file of how I would redirect this page to the new one:
Here is my current .htaccess file and it is not working, it just brings me to the homepage with a string after it instead of bringing me to the nice wordpress URL:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/index.php?option=com_content&view=article&id=38&Itemid=64$ http://mydomain.com/insightvision/ [R=301,L] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
The rule that I am working on is this one:
RewriteRule ^/index.php?option=com_content&view=article&id=38&Itemid=64$ http://mydomain.com/insightvision/ [R=301,L]
Could someone please help me with the proper format for using mod_rewrite to redirect that URL or give me a better way of doing it?Thanks a ton, I have been searching for literally days on this and can’t get my head around it.
- The topic ‘Can't Redirect Dynamic URLs to WordPress’ is closed to new replies.