Folks, looking for a little guidance on an .htaccess redirect problem - I'm a bit of a newbie when it comes to the rewriting of urls...
We've changed from one CMS to another on our company Intranet (Joomla to ModX) and there are three specific URLs that I'd like to have automatically redirect.
One of the old addresses was:
http://test.com/index.php?optio n=com_wrapper&v iew=wrapper&Ite mid=54
and the new page is at
http://test.com/email-list.htm
I'm using mod_rewrite on Apache 2, and I've included a line in it:
Redirect 301 /index.php\?opti on=com_wrapper& view=wrapper&It emid=54 /email-list.htm
It just resolves to the main page of the site...
There is another rule that might be causing problems, but I need it for friendly URLs to work:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Unfortunately, the new CMS also uses the index.php format, but none of the same parameters are passed. Can I just parse those parameters strings and point to the new page for the three I really need? Why do I need these ones? They are marked as favourites and on the desktop of about 800+ PCs...and we don't have the resources to change all of them right away...
Thanks in Advance
We've changed from one CMS to another on our company Intranet (Joomla to ModX) and there are three specific URLs that I'd like to have automatically redirect.
One of the old addresses was:
http://test.com/index.php?optio n=com_wrapper&v iew=wrapper&Ite mid=54
and the new page is at
http://test.com/email-list.htm
I'm using mod_rewrite on Apache 2, and I've included a line in it:
Redirect 301 /index.php\?opti on=com_wrapper& view=wrapper&It emid=54 /email-list.htm
It just resolves to the main page of the site...
There is another rule that might be causing problems, but I need it for friendly URLs to work:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Unfortunately, the new CMS also uses the index.php format, but none of the same parameters are passed. Can I just parse those parameters strings and point to the new page for the three I really need? Why do I need these ones? They are marked as favourites and on the desktop of about 800+ PCs...and we don't have the resources to change all of them right away...
Thanks in Advance