.../video/video.php?vid=029252fcc is a 404 page due to a SEF plugin in Joomla. There are too many pages to do anything other than redirect to the new filename which does exist:
.../video/myvideo.php?vid=029252fcc
I have many rewrites already in the .htaccess and they are working well, none have query strings.
I'm a little confused because <something> must be the query string right? So if I add the line
RewriteCond %{QUERY_STRING} ^(vid=[^&]+)
I thought I was "giving life to" (can't think of the right phrase) the query string so it will be referenced and added to the target URL when I use %1 as in my first post.
But then Lucy24 says that I dont need to worry about the query string as it will reappend itself on the target.
So on here I have read this on a couple of threads, and also looked at threads where the query string RewriteCond is used.
I have used both but neither seem to do anything. That is the same URL in the browser remains, which returns a 404 when using Fiddler or HTTP Headers (as well as in the browser).
So now I am confused as to whether i'm using the wrong syntax or something else is wrong. I'm hoping it is that the penny hasn't quite dropped.