: Mod rewrite - redirecting url with certain parameter to new url I need some help redirecting a url with particular parameter value to a new url. For example how can i redirect these two urls
I need some help redirecting a url with particular parameter value to a new url. For example how can i redirect these two urls with id 123 and 345 to a new url?
Redirect
testserver.xyz.com/abc/content/content.jsp?contentId=123 http://testserver.xyz.com/abc/content/content.jsp?contentId=345
to
newpage.silkroad.com/
More posts by @Miguel251
1 Comments
Sorted by latest first Latest Oldest Best
Assuming you want a 301 (Moved Permanently) redirect, then put the following in the .htaccess file in your document root:
Options +FollowSymLinks # Must be enabled if not already
RewriteEngine On
RewriteRule ^abc/content/content.jsp?contentId=(123|345)$ newpage.silkroad.com/ [R=301,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.