Forum Moderators: Robert Charlton & goodroi
Redirect 301 /widgets/old_page.html http://www.newdomain.com/new_page.html? http://www.newdomain.com/new_page.html/widgets/old_page.html
It doesn't actually add a question mark to the visible URL.
http://www.newdomain.com/new_page.html? RewriteRule syntax for those external 301 redirects and use the final question mark to stop query strings being reappended. RewriteRule ^old-path$ http://www.example.com/new-path? [R=301,L] Redirect syntax as it is very limiting in what it can do.
You need an external redirect here, not an internal rewrite...
RewriteRule ^old-path$ http://www.example.com/new-path? [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /[^\?]*\?\ HTTP/
RewriteRule (.*) http://www.example.com/$1? [R=301,L]