Answer the question
In order to leave comments, you need to log in
Redirect url with variables, how to do it?
The travelline script for number search generates a url of this type "/booking.html?date=2020-07-05&nights=3&adults=1" (variables depending on dates, and number of people) . How to make a redirect to the /booking/ page while saving the variable?
Site no wordpress.
Answer the question
In order to leave comments, you need to log in
RewriteRule ^booking\.html(.*)$ booking/$1 [R=301,L]
RewriteCond %{QUERY_STRING} (^|&)date\=.+($|&)
RewriteCond %{QUERY_STRING} (^|&)nights\=.+($|&)
RewriteCond %{QUERY_STRING} (^|&)adults\=.+($|&)
RewriteRule ^booking\.html$ /booking/ [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question