Trace:
Differences
This shows you the differences between two versions of the page.
linux:apache_webserver [2015/04/13 13:14] onno [Keep The Original Query String] |
linux:apache_webserver [2016/01/05 12:21] (current) onno [Keep The Original Query String] |
||
---|---|---|---|
Line 524: | Line 524: | ||
For example, if your incoming url is: ''myhost.com/language-learning?keyword=french'' then the resulting url will be: ''myhost.com/mod/page/view.php?id=161&keyword=french'' (though the browser will still display the original query string in the address bar). | For example, if your incoming url is: ''myhost.com/language-learning?keyword=french'' then the resulting url will be: ''myhost.com/mod/page/view.php?id=161&keyword=french'' (though the browser will still display the original query string in the address bar). | ||
+ | |||
+ | ==== Redirect to Completely New URL ==== | ||
+ | <code> | ||
+ | RewriteEngine on | ||
+ | RewriteRule ^mastersinlean.trainertops.com$ mastersinlean.trainertops.nl [R=301,NC,L] | ||
+ | RewriteCond %{HTTP_HOST} ^mastersinlean.trainertops.nl$ | ||
+ | RewriteRule ^(.*)$ http://trainingen.mastersinlean.com/$1 [R=301,L] | ||
+ | </code> |
You are here: start » linux » apache_webserver