Redirect URL with a specific parameter name
2 posts
• Page 1 of 1
- janmontano
- Posts: 2
- Joined: 16 Jul 2012, 22:52
Redirect URL with a specific parameter name
I would like to redirect the URL http://www.sydneyanimalhospitals.com.au?ArticleID=[X] to http://www.sydneyanimalhospitals.com.au
where [X] is any number
e.g.
http://www.sydneyanimalhospitals.com.au?ArticleID=127
http://www.sydneyanimalhospitals.com.au?ArticleID=5
http://www.sydneyanimalhospitals.com.au ... eID=242522
And so on...
where [X] is any number
e.g.
http://www.sydneyanimalhospitals.com.au?ArticleID=127
http://www.sydneyanimalhospitals.com.au?ArticleID=5
http://www.sydneyanimalhospitals.com.au ... eID=242522
And so on...
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Redirect URL with a specific parameter name
Hello,
Try using the following:
Regards
Andrew
Try using the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^ArticleID=.*$
RewriteRule ^$ http://www.sydneyanimalhospitals.com.au? [NC,R=301,L]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests