Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Query String Redirect

$
0
0

Replies: 0

Hi,

I am trying to redirect any URL that contains a certain query string (?login=failed) to a specific page (/login-failed/).

I am using the below code in the .htacess file but it is not working for me.

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{QUERY_STRING} login=failed
	RewriteRule (.*) /login-failed/ [R=301,L]
</IfModule>

Is there anyone who can highlight the mistake or guide me on how I can do it.
P.S: “I am not a developer or familiar with javascript or PHP languages.”


Viewing all articles
Browse latest Browse all 59525

Trending Articles