Forum Moderators: phranque
I have the url:
www.example.com/oscom/index.php?cPath=21
here is what i have so far that doesn't seem to be working
RewriteCond %{query_string} ^cPath=21$
RewriteRule ^index\.php$ http://www.example.com/c/CategoryName/code [R=301,L]
Not exactly sure what i am doing wrong, would appreciate any help.
[edited by: jdMorgan at 1:19 am (utc) on June 2, 2008]
[edit reason] example.com [/edit]
RewriteCond %{QUERY_STRING} ^cPath=21$
RewriteRule ^oscom/index\.php$ http://www.example.com/c/CategoryName/code [R=301,L]
Jim
[edited by: jdMorgan at 1:18 am (utc) on June 2, 2008]
I had been putting the .htaccess file directly into the oscom folder since i wasn't sure if maybe that was my problem.
Well, your prompt asking for the entire .htaccess file made me realise my mistake, i had left out an important line, RewriteEngine On
Thanks for that! :)