apache - htaccess redirect urls with parameters to specific directory -


i want redirect specific urls from

http://www.domain.com/com/page.asp?id=99 https://www.domain.com/de/directory/ 

and urls from

http://www.domain.com/com/page.asp https://www.domain.com/de/ 

ive tried redirects cant done right. please me!

rewritecond %{query_string} id=5 rewriterule (.*) https://www.domain.com/de/directory/? [r=301,l]  works, biggest problem urls in cms https://www.domain.com/cms redirected if contain id 

try:

rewriteengine on rewritecond %{query_string} ^id=99$ rewriterule ^page\.asp$ /de/directory/ [l,r] rewriterule ^page\.asp$ /de/ [l,r] 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -