Forum Moderators: phranque
I have read many posts that almost solve my problem but not quite.
I am trying to 301 redirect page.pl? to newpage.html
The code I am using is:
RedirectMatch permanent ^/cgi-bin/directory/page.pl* http://www.example.com/newpage.html
This does redirect but the url reads http://www.example.com/newpage.html?
Is there any way to get rid of the ? at the end of the URL?
Thanks.
Options +FollowSymLinks
RewriteEngine on
#
RewriteRule ^cgi-bin/directory/page\.pl$ http://www.example.com/newpage.html? [R=301,L]
Jim