Hi,
I'm pretty new to Apache redirections.
I want to redirect the below urls to my index page i.e. http://www.example.com/. For the below mentioned urls I have written the redirections. Unfortunately these redirections are not working. Please any suggestions/solutions?
- http://www.example.com/ex/results/000-test00.shtml?Airline=temp+Airlines+-+COA&FlightNumber=145&Command=ByFlightNumberGraph&x=1&y=2
Redirection Rule: RewriteRule ^/ex/results/000-test00.shtml?Airline=temp+Airlines+-+COA&FlightNumber=145&Command=ByFlightNumberGraph&x=1&y=2 http://www.example.com/ [R=301,L]
- http://www.example.com/ex/find/010-test00.shtml?Command=_byflightkey_&FlightKey=#*$!12.tre.temp-12345
Redirection Rule: RewriteRule ^/ex/find/010-test00.shtml?Command=_byflightkey_&FlightKey=#*$!12.tre.temp-12345 http://www.example.com/ [R=301,L]
- http://www.example.com/testing/loc/%5C
Redirection Rule: RewriteRule ^/testing/loc/%5C http://www.example.com/ [R=301,L]
- http://www.example.com/testing/'+queryStr+'
Redirection Rule: RewriteRule ^/testing/'+queryStr+' http://www.example.com/ [R=301,L]
- http://www.example.com/test/temp/tracker/flight_tracker_index.xsl%00
Redirection Rule: RewriteRule ^/test/temp/tracker/flight_tracker_index.xsl%00 http://www.example.com/ [R=301,L]
- http://www.example.com/test/temp/tracker_pack/pack_search.xsl?promotion=loc1-loc2-pack-pp&pack-offering-id=01&pack-include-components=FHC&pack-destination-city=loc3
Redirection Rule: RewriteRule ^/test/temp/tracker_pack/pack_search.xsl?promotion=loc1-loc2-pack-pp&pack-offering-id=01&pack-include-components=FHC&pack-destination-city=loc3 http://www.example.com/ [R=301,L]
- http://www.example.com/test/temp/flighttrack/flight_track_index.xsl?promo=55_405
Redirection Rule: RewriteRule ^/test/temp/flighttrack/flight_track_index.xsl?promo=55_405 http://www.example.com/ [R=301,L]