Hello, thanks in advance for the help.
Let me give the quick rundown. I have a .htaccess file to rewrite my long URL's to 'static' URL's. These were working fine until I added a line to redirect my sub-domains to a new folder structure.
So Here's what I need to accomplish:
http://widgets.example.com/show.php?widget=123 -> http://example.com/widgets/showwidget123.htm
But instead it's doing this:
http://example.com/widgets/show.php?widget=123
Here's my .htaccess file:
RewriteEngine On
RewriteRule showwidget(.*)\.htm$ /show.php?widget=$1
RewriteCond %{HTTP_HOST} ^widgets.example.com
RewriteRule (.*) http://www.example.com/widgets/$1 [R=301,L]
So it's re-writing the domain correctly, but it's not changing the filename.