Difference between revisions for Routing Test
|
|
Next edit →
|
| Merge of Version1 & Version2 | |
|---|---|
| 1 | Sitemap: https://wackowiki.org/test/xml/sitemap.xml |
| 2 | |
| 3 | https://wackowiki.org/test/xml/sitemap.xml |
| 4 | %% |
| 5 | RewriteEngine On |
| 6 | |
| 7 | # Redirect www to non-www, preserving the full path and query string |
| 8 | RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] |
| 9 | RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
| 10 | %% |