Kevin205:
I am trying to add the following to htaccess file, so I don't have to use the CEON plugin.
redirect "http: //MySiteDOTcom/blue-jeans http: //MySiteDOTcom/index.php?main_page=index&cPath=9"
It sends me to the "not found page".
/index.php?main_page=page_not_found
Is there a way to achieve this?
There's several ways of achieving this, and your example is just one of them (albeit, not correctly implemented).
The correct syntax using your method would be:
redirect 301 /blue-jeans http://somesiteDOTcom/index.php?main_page=index&cPath=9
The easiest way to add this kind of redirect though is to use the redirect tool from your cPanel (assuming you use cPanel). Doing it this way is just a matter of first navigating to the page you wish to end up on, and copying the URL.
Next you'll log into your cPanel and clicking on the 'redirects' link.
Select the domain (assuming you have more than one) and entering the URL you wish to redirect (/blue-jeans), then finally pasting the URL previously copied into the 'redirects to' box.
That's it. Job done. No direct file edits needed. (The Cpanel redirect module takes the info provided and writes to the .htaccess file for you, ensuring it that the syntax is correct as it does so).
Cheers
RodG