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