Forum Moderators: phranque
/search.php?q=manager&city=london?page=1&distance=0 /{q}-jobs/{city}.html?page=1&distance=0 /manager-jobs/london.html?page=1&distance=0 /{q}-jobs/national.html /jobs/{city}.html?page=1&distance=0 /jobs/national.html?page=1&distance=0
Here's what I want to do:
Why would you say POST is easier to control as appose to GET?
Pretty URL (front end) > URL rewrite pretty > Server > Old URL > Process code > rewrite / redirect URL > Pretty URL (front end)Ah, the redirect-rewrite two-step, required when you've changed your mind about which part goes in the query string. (But moving some parts to the main URLpath while keeping other parts in the query seems awkward. Make sure this is really what you want to do.)
RewriteCond %{QUERY_STRING} blahblah
RewriteRule ^old-messy-url https://www.example.com/new-pretty-url [R=301,L]
(possibly replacing QUERY_STRING with THE_REQUEST depending on, well, stuff) and then, later, in the section dealing with internal rewrites, RewriteRule ^pretty-url /messy-url-with-query [L]