.htaccess - What is the htaccess rule to do this? -
what htaccess rule achieve following please ?
i have bunch of deleted urls 301 redirect homepage.
the urls have format, showthread.php?tid=405
any parameter additional can redirected homepage.
eg. showthread.php?tid=405&pid=112
i redirect range, save myself making individual entries, eg tid=405-420
they must redirected homepage (example.com) , site running in https.
i know need this
rewritecond %{request_uri} ^/showthread\.php$ rewritecond %{query_string} ^id=([0-9]*)$ rewriterule https://www.example.com [r=301,l]
but short of stuying htaccess rules hours, can't figure out. i'd appreciate help. thanks
Comments
Post a Comment